mirror of
https://github.com/isledecomp/isle.git
synced 2026-01-28 18:51:16 +00:00
get m_buffer size dynamically in loop
This commit is contained in:
parent
a6cc469f9b
commit
6108468dde
@ -28,6 +28,7 @@ class InfocenterState : public LegoState {
|
||||
// FUNCTION: LEGO1 0x10071830
|
||||
virtual MxBool VTable0x14() override { return FALSE; } // vtable+0x14
|
||||
|
||||
inline MxS16 GetInfocenterBufferSize() { return sizeof(m_buffer) / sizeof(m_buffer[0]); }
|
||||
inline MxStillPresenter* GetInfocenterBufferElement(MxS32 p_index) { return m_buffer[p_index]; }
|
||||
inline MxU32 GetUnknown0x74() { return m_unk0x74; }
|
||||
|
||||
|
||||
@ -58,7 +58,7 @@ Infocenter::~Infocenter()
|
||||
m_infocenterState->GetInfocenterBufferElement(i)->Enable(FALSE);
|
||||
}
|
||||
i++;
|
||||
} while (i < 7);
|
||||
} while (i < m_infocenterState->GetInfocenterBufferSize());
|
||||
|
||||
ControlManager()->Unregister(this);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user