d_stage cleanup (#2392)

This commit is contained in:
LagoLunatic
2025-04-13 23:54:57 -04:00
committed by GitHub
parent efc781e892
commit cb8a9815b1
47 changed files with 1184 additions and 1609 deletions
+6 -6
View File
@@ -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];
}
}
}