Fixed invalid handle error in ZMarket module (bug 152).

This commit is contained in:
Richard Helgeby 2010-08-06 15:42:22 +02:00
parent 760ee6acc3
commit 86678a9025

View File

@ -191,8 +191,11 @@ ZMarketOnClientSpawnPost(client)
ZMarketResetPurchaseCount(client) ZMarketResetPurchaseCount(client)
{ {
// Clear out the trie of all data. // Clear out the trie of all data.
if (g_hZMarketPurchaseCount[client] != INVALID_HANDLE)
{
ClearTrie(g_hZMarketPurchaseCount[client]); ClearTrie(g_hZMarketPurchaseCount[client]);
} }
}
/** /**
* Set the purchases left for a client of a weapon. * Set the purchases left for a client of a weapon.