Skip to content

Commit

Permalink
Fix typo in EntityComponentManager (#1304)
Browse files Browse the repository at this point in the history
This typo appears to be an artifact of some earlier copy-pastes. It sometimes causes the SceneBroadcaster to crash in unoptimized builds.

Signed-off-by: sicongw <60666741+sicongw@users.noreply.github.com>
  • Loading branch information
sicongw authored Jan 21, 2022
1 parent 9dee519 commit 9d36c8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/EntityComponentManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1453,7 +1453,7 @@ void EntityComponentManager::AddEntityToMessage(msgs::SerializedStateMap &_msg,
// periodic change
auto periodicIter = this->dataPtr->periodicChangedComponents.find(type);
if (periodicIter != this->dataPtr->periodicChangedComponents.end() &&
periodicIter->second.find(_entity) != oneTimeIter->second.end())
periodicIter->second.find(_entity) != periodicIter->second.end())
noChange = false;
}

Expand Down

0 comments on commit 9d36c8c

Please sign in to comment.