From e8ec5794d20840a38947cd29094b0c1ee148c275 Mon Sep 17 00:00:00 2001 From: Wojtek Figat Date: Sat, 6 May 2023 23:02:35 +0200 Subject: [PATCH] Simplify code #1034 --- Source/Engine/Level/Tags.cpp | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/Source/Engine/Level/Tags.cpp b/Source/Engine/Level/Tags.cpp index 602aea445..f540cb112 100644 --- a/Source/Engine/Level/Tags.cpp +++ b/Source/Engine/Level/Tags.cpp @@ -59,17 +59,13 @@ Array Tags::GetSubTags(Tag parentTag) { Array subTags; const String& parentTagName = parentTag.ToString(); - - for (int i = 0; i < Tags::List.Count(); i++) + for (int32 i = 0; i < List.Count(); i++) { - const Tag tag = Tag(i + 1); - const String& tagName = Tags::List[i]; + const Tag tag(i + 1); + const String& tagName = List[i]; if (tagName.StartsWith(parentTagName) && parentTag.Index != tag.Index) - { subTags.Add(tag); - } } - return subTags; }