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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user