mirror of https://github.com/AxioDL/metaforce.git
Rename CStateManager::x8_idArr to CStateManager::x4_idArr to better match the game
This commit is contained in:
parent
95f44be694
commit
e9b2230c0a
|
@ -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) {
|
||||
|
|
|
@ -86,7 +86,7 @@ public:
|
|||
|
||||
private:
|
||||
s16 x0_nextFreeIndex = 0;
|
||||
std::array<u16, 1024> x8_idArr{};
|
||||
std::array<u16, 1024> x4_idxArr{};
|
||||
|
||||
/*
|
||||
std::unique_ptr<CObjectList> x80c_allObjs;
|
||||
|
|
Loading…
Reference in New Issue