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:
Greyscale
2009-06-15 20:57:40 -07:00
parent 1530d20308
commit f403485b38
2 changed files with 14 additions and 4 deletions

View File

@ -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;
}