Don't clear entity containers untill after the virtual machine was closed. Should close #22

This commit is contained in:
Sandu Liviu Catalin committed 2016-07-16 15:45:36 +03:00
1 parent 7fe7116df4
commit e32464b6ea
4 files changed
+260 -35

No files matched your search

+1
View File
@@ -224,6 +224,7 @@ static void OnPlayerDisconnect(int32_t player_id, vcmpDisconnectReason reason)
// Attempt to forward the event
try
{
printf("Disconnecting... %d\n", player_id);
Core::Get().DisconnectPlayer(player_id, reason, NullObject());
}
SQMOD_CATCH_EVENT_EXCEPTION(OnPlayerDisconnect)