Fixed invalid handle error in ZMarket module (bug 152).
This commit is contained in:
parent
760ee6acc3
commit
86678a9025
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user