sig/network - bugfix - removal of player prefabs on disconnect

sig/network - bugfix - removal of player prefabs on disconnect
This commit is contained in:
Olex Lozitskiy
2021-06-24 15:01:41 -05:00
committed by GitHub
6 changed files with 30 additions and 22 deletions
@@ -123,8 +123,10 @@ namespace Multiplayer
for (NetworkEntityHandle entityHandle : m_rewoundEntities)
{
NetBindComponent* netBindComponent = entityHandle.GetNetBindComponent();
netBindComponent->NotifySyncRewindState();
if (NetBindComponent* netBindComponent = entityHandle.GetNetBindComponent())
{
netBindComponent->NotifySyncRewindState();
}
}
m_rewoundEntities.clear();
}