2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-08 22:27:43 +00:00

CScriptMazeNode: Working implementation

This commit is contained in:
2020-09-20 03:25:56 -04:00
parent 2cca2b8513
commit eb124a9470
3 changed files with 26 additions and 23 deletions

View File

@@ -2749,9 +2749,9 @@ TUniqueId CStateManager::AllocateUniqueId() {
s16 ourIndex;
do {
ourIndex = x0_nextFreeIndex;
x0_nextFreeIndex = (x0_nextFreeIndex + 1) & 0x3ff;
x0_nextFreeIndex = (ourIndex + 1) & 0x3ff;
if (x0_nextFreeIndex == lastIndex) {
LogModule.report(logvisor::Fatal, FMT_STRING("Object List Full!"));
LogModule.report(logvisor::Fatal, FMT_STRING("Object list full!"));
}
} while (GetAllObjectList().GetObjectByIndex(ourIndex) != nullptr);