From 25605045bcf04d3bf7b982e7fa582eab564dc7d1 Mon Sep 17 00:00:00 2001 From: aap Date: Sat, 15 Jun 2019 11:41:27 +0200 Subject: silly mistake in txd store --- src/TxdStore.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/TxdStore.cpp') diff --git a/src/TxdStore.cpp b/src/TxdStore.cpp index 291feb2f..6ff7e852 100644 --- a/src/TxdStore.cpp +++ b/src/TxdStore.cpp @@ -29,7 +29,7 @@ CTxdStore::GameShutdown(void) for(i = 0; i < TXDSTORESIZE; i++){ TxdDef *def = GetSlot(i); - if(def && GetNumRefs(i)) + if(def && GetNumRefs(i) == 0) RemoveTxdSlot(i); } } -- cgit v1.2.3