From 86678a90255c09f38174622b081828f0b1a625c9 Mon Sep 17 00:00:00 2001 From: Richard Helgeby Date: Fri, 6 Aug 2010 15:42:22 +0200 Subject: [PATCH] Fixed invalid handle error in ZMarket module (bug 152). --- src/zr/weapons/zmarket.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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]); + } } /**