mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-07-28 06:57:02 -04:00
d_stage cleanup (#2392)
This commit is contained in:
+6
-6
@@ -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];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user