diff options
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]; } } } |
