summaryrefslogtreecommitdiffstats
path: root/src/TxdStore.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/TxdStore.cpp')
-rw-r--r--src/TxdStore.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}
}