diff options
| author | LagoLunatic <LagoLunatic@users.noreply.github.com> | 2025-04-13 23:54:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-13 20:54:57 -0700 |
| commit | f891887626e36b991b0e8afd4e6b995c3d1a4540 (patch) | |
| tree | 639a8bbd0062ca6f0d8ae6775e2afb06b2b096bf /src/d/d_event.cpp | |
| parent | 3df5c7bb42c1b886024b254fec28e5f98310b630 (diff) | |
d_stage cleanup (#2392)
Diffstat (limited to 'src/d/d_event.cpp')
| -rw-r--r-- | src/d/d_event.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/d/d_event.cpp b/src/d/d_event.cpp index f7a5f57727..c2ab3acf73 100644 --- a/src/d/d_event.cpp +++ b/src/d/d_event.cpp @@ -1129,9 +1129,9 @@ dStage_MapEvent_dt_c* dEvt_control_c::searchMapEventData(u8 mapToolID, s32 roomN dStage_MapEventInfo_c* roomInfo = room_dt->getMapEventInfo(); if (roomInfo != NULL) { - for (int i = 0; i < roomInfo->mCount; i++) { - if (mapToolID == roomInfo->mData[i].field_0x4) { - return &roomInfo->mData[i]; + for (int i = 0; i < roomInfo->num; i++) { + if (mapToolID == roomInfo->m_entries[i].field_0x4) { + return &roomInfo->m_entries[i]; } } } @@ -1139,9 +1139,9 @@ dStage_MapEvent_dt_c* dEvt_control_c::searchMapEventData(u8 mapToolID, s32 roomN dStage_MapEventInfo_c* stageInfo = dComIfGp_getStage()->getMapEventInfo(); if (stageInfo != NULL) { - for (int i = 0; i < stageInfo->mCount; i++) { - if (mapToolID == stageInfo->mData[i].field_0x4) { - return &stageInfo->mData[i]; + for (int i = 0; i < stageInfo->num; i++) { + if (mapToolID == stageInfo->m_entries[i].field_0x4) { + return &stageInfo->m_entries[i]; } } } |
