Fixed error in zmarket caused by disconnection twice before the client was put in game (rapid map changing), fixed sky not disabling properly.
This commit is contained in:
@ -114,7 +114,12 @@ ZMarketClientInit(client)
|
||||
ZMarketOnClientDisconnect(client)
|
||||
{
|
||||
// Destroy ZMarket array data for client.
|
||||
CloseHandle(g_hZMarketPurchaseCount[client]);
|
||||
if (g_hZMarketPurchaseCount[client] != INVALID_HANDLE)
|
||||
{
|
||||
CloseHandle(g_hZMarketPurchaseCount[client]);
|
||||
}
|
||||
|
||||
// Reset handle.
|
||||
g_hZMarketPurchaseCount[client] = INVALID_HANDLE;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user