Address feedback

This commit is contained in:
Aaron Kimbre
2023-05-11 09:23:48 -05:00
parent 5af5b0f1c1
commit a809f36548
2 changed files with 2 additions and 5 deletions

View File

@@ -6215,8 +6215,5 @@ void GameMessages::HandleRequestActivityExit(RakNet::BitStream* inStream, Entity
inStream->Read(player_id);
auto player = EntityManager::Instance()->GetEntity(player_id);
if (!entity || !player) return;
for (auto* shootingGallery : EntityManager::Instance()->GetEntitiesByComponent(eReplicaComponentType::SHOOTING_GALLERY)) {
shootingGallery->RequestActivityExit(entity, player_id, true);
}
entity->RequestActivityExit(entity, player_id, canceled);
}