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.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/TxdStore.h') 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); }; -- cgit v1.2.3