diff --git a/Source/Engine/Level/Tags.cpp b/Source/Engine/Level/Tags.cpp index efdd522e7..63cfd8442 100644 --- a/Source/Engine/Level/Tags.cpp +++ b/Source/Engine/Level/Tags.cpp @@ -64,7 +64,7 @@ Array Tags::GetSubTags(Tag parentTag) { const Tag tag = Tag(i + 1); const String& tagName = Tags::List[i]; - if (tagName.StartsWith(parentTagName) && parentTag.Index != tag) + if (tagName.StartsWith(parentTagName) && parentTag.Index != tag.Index) { subTags.Add(tag); }