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:
1 parent
1530d20308
commit
f403485b38
2 files changed
+14
-4
No files matched your search
@@ -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