mirror of
https://gitlab.com/GaryOderNichts/re3-wiiu.git
synced 2024-12-23 16:21:50 +01:00
silly mistake in txd store
This commit is contained in:
parent
3ee0879f6c
commit
25605045bc
@ -29,7 +29,7 @@ CTxdStore::GameShutdown(void)
|
|||||||
|
|
||||||
for(i = 0; i < TXDSTORESIZE; i++){
|
for(i = 0; i < TXDSTORESIZE; i++){
|
||||||
TxdDef *def = GetSlot(i);
|
TxdDef *def = GetSlot(i);
|
||||||
if(def && GetNumRefs(i))
|
if(def && GetNumRefs(i) == 0)
|
||||||
RemoveTxdSlot(i);
|
RemoveTxdSlot(i);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,6 +34,11 @@ public:
|
|||||||
static bool FinishLoadTxd(int slot, RwStream *stream);
|
static bool FinishLoadTxd(int slot, RwStream *stream);
|
||||||
static void RemoveTxd(int slot);
|
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);
|
static bool isTxdLoaded(int slot);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user