Skip to content

Commit 1d61a19

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

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Code/Source/RGLSystemComponent.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ namespace RGL
161161
return;
162162
}
163163

164-
m_entityTagListeners.emplace_back(entity.GetId());
164+
m_entityTagListeners.emplace(entity.GetId(), entity.GetId());
165165

166166
if (m_activeLidarCount < 1U || ShouldEntityBeExcluded(entity.GetId()))
167167
{
@@ -176,6 +176,7 @@ namespace RGL
176176
{
177177
m_unprocessedEntities.erase(id);
178178
m_entityManagers.erase(id);
179+
m_entityTagListeners.erase(id);
179180
}
180181

181182
void RGLSystemComponent::OnEntityContextReset()

Code/Source/RGLSystemComponent.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ namespace RGL
8686

8787
AZStd::set<AZ::EntityId> m_excludedEntities;
8888
AZStd::set<AZ::EntityId> m_unprocessedEntities;
89+
AZStd::unordered_map<AZ::EntityId, EntityTagListener> m_entityTagListeners;
8990
AZStd::vector<AZ::EntityId> m_managersToBeRemoved;
9091
AZStd::unordered_map<AZ::EntityId, AZStd::unique_ptr<EntityManager>> m_entityManagers;
91-
AZStd::vector<EntityTagListener> m_entityTagListeners;
9292

9393
AZStd::vector<LmbrCentral::Tag> m_excludedTags;
9494

0 commit comments

Comments
 (0)