diff --git a/Runtime/CStateManager.cpp b/Runtime/CStateManager.cpp index fcaf7d665..504dd806a 100644 --- a/Runtime/CStateManager.cpp +++ b/Runtime/CStateManager.cpp @@ -2837,12 +2837,12 @@ TUniqueId CStateManager::AllocateUniqueId() { } } while (GetAllObjectList().GetObjectByIndex(ourIndex) != nullptr); - x8_idArr[ourIndex] = (x8_idArr[ourIndex] + 1) & 0x3f; - if (TUniqueId(ourIndex, x8_idArr[ourIndex]) == kInvalidUniqueId) { - x8_idArr[ourIndex] = 0; + x4_idxArr[ourIndex] = (x4_idxArr[ourIndex] + 1) & 0x3f; + if (TUniqueId(ourIndex, x4_idxArr[ourIndex]) == kInvalidUniqueId) { + x4_idxArr[ourIndex] = 0; } - return TUniqueId(ourIndex, x8_idArr[ourIndex]); + return TUniqueId(ourIndex, x4_idxArr[ourIndex]); } void CStateManager::DeferStateTransition(EStateManagerTransition t) { diff --git a/Runtime/CStateManager.hpp b/Runtime/CStateManager.hpp index 1fb1c9f8b..bdd602964 100644 --- a/Runtime/CStateManager.hpp +++ b/Runtime/CStateManager.hpp @@ -86,7 +86,7 @@ public: private: s16 x0_nextFreeIndex = 0; - std::array x8_idArr{}; + std::array x4_idxArr{}; /* std::unique_ptr x80c_allObjs;