diff --git a/src/zr/weapons/zmarket.inc b/src/zr/weapons/zmarket.inc index ba9a906..a280525 100644 --- a/src/zr/weapons/zmarket.inc +++ b/src/zr/weapons/zmarket.inc @@ -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]); + } } /**