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,7 +191,10 @@ ZMarketOnClientSpawnPost(client)
ZMarketResetPurchaseCount(client)
{
// Clear out the trie of all data.
ClearTrie(g_hZMarketPurchaseCount[client]);
if (g_hZMarketPurchaseCount[client] != INVALID_HANDLE)
{
ClearTrie(g_hZMarketPurchaseCount[client]);
}
}
/**