Skip to content

Commit 6abf5fb

Browse files
Review changes
Signed-off-by: Aleksander Kamiński <[email protected]>
1 parent 2ba5799 commit 6abf5fb

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

Code/Source/RGLSystemComponent.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -145,15 +145,13 @@ namespace RGL
145145
return false;
146146
}
147147

148-
for (const auto tag : excludedTags)
149-
{
150-
if (entityTags.contains(tag))
148+
return AZStd::any_of(
149+
excludedTags.cbegin(),
150+
excludedTags.cend(),
151+
[&entityTags](const auto& tag)
151152
{
152-
return true;
153-
}
154-
}
155-
156-
return false;
153+
return entityTags.contains(tag);
154+
});
157155
}
158156

159157
void RGLSystemComponent::OnEntityContextCreateEntity(AZ::Entity& entity)

0 commit comments

Comments
 (0)