summaryrefslogtreecommitdiffstats
path: root/src/TxdStore.h
diff options
context:
space:
mode:
authoraap <aap@papnet.eu>2019-06-15 11:41:27 +0200
committeraap <aap@papnet.eu>2019-06-15 11:41:27 +0200
commit25605045bcf04d3bf7b982e7fa582eab564dc7d1 (patch)
treed0c2c68e2a84e73a6cab399b840bb9ceb4565539 /src/TxdStore.h
parentMerge pull request #13 from ShFil119/CIdebug (diff)
downloadre3-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 'src/TxdStore.h')
-rw-r--r--src/TxdStore.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/TxdStore.h b/src/TxdStore.h
index 50a94a75..a9e57d31 100644
--- a/src/TxdStore.h
+++ b/src/TxdStore.h
@@ -34,6 +34,11 @@ public:
static bool FinishLoadTxd(int slot, RwStream *stream);
static void RemoveTxd(int slot);
- static TxdDef *GetSlot(int slot) { return ms_pTxdPool->GetSlot(slot); }
+ static TxdDef *GetSlot(int slot) {
+ assert(slot >= 0);
+ assert(ms_pTxdPool);
+ assert(slot < ms_pTxdPool->GetSize());
+ return ms_pTxdPool->GetSlot(slot);
+ }
static bool isTxdLoaded(int slot);
};