diff options
author | aap <aap@papnet.eu> | 2019-06-15 11:41:27 +0200 |
---|---|---|
committer | aap <aap@papnet.eu> | 2019-06-15 11:41:27 +0200 |
commit | 25605045bcf04d3bf7b982e7fa582eab564dc7d1 (patch) | |
tree | d0c2c68e2a84e73a6cab399b840bb9ceb4565539 /src/TxdStore.cpp | |
parent | Merge pull request #13 from ShFil119/CIdebug (diff) | |
download | re3-25605045bcf04d3bf7b982e7fa582eab564dc7d1.tar re3-25605045bcf04d3bf7b982e7fa582eab564dc7d1.tar.gz re3-25605045bcf04d3bf7b982e7fa582eab564dc7d1.tar.bz2 re3-25605045bcf04d3bf7b982e7fa582eab564dc7d1.tar.lz re3-25605045bcf04d3bf7b982e7fa582eab564dc7d1.tar.xz re3-25605045bcf04d3bf7b982e7fa582eab564dc7d1.tar.zst re3-25605045bcf04d3bf7b982e7fa582eab564dc7d1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/TxdStore.cpp | 2 |
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); } } |