1
0
mirror of https://github.com/VCMP-SqMod/SqMod.git synced 2025-07-03 07:27:11 +02:00

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

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

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)