2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-16 02:57:03 +00:00

Proper handling for persistently resident resources

This commit is contained in:
Jack Andersen
2019-03-09 23:37:36 -10:00
parent 2f963b9ce3
commit 52b36795ac
18 changed files with 69 additions and 17 deletions

View File

@@ -91,7 +91,7 @@ void CToken::Lock() {
}
}
bool CToken::IsLoaded() const {
if (!x0_objRef)
if (!x0_objRef || !x4_lockHeld)
return false;
return x0_objRef->IsLoaded();
}