silly mistake in txd store

This commit is contained in:
aap
2019-06-15 11:41:27 +02:00
parent 3ee0879f6c
commit 25605045bc
2 changed files with 7 additions and 2 deletions

View File

@@ -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);
}
}