Fix: Gameplay Stats OOB (#2673)
* Handle `sceneMapping` OOB behavior * whoops * More solid definition of upper bound
This commit is contained in:
@@ -251,8 +251,10 @@ std::string ResolveSceneID(int sceneID, int roomID){
|
|||||||
} else if (sceneID == SCENE_HAKASITARELAY) {
|
} else if (sceneID == SCENE_HAKASITARELAY) {
|
||||||
//Only the last room of Dampe's Grave (rm 6) is considered the windmill
|
//Only the last room of Dampe's Grave (rm 6) is considered the windmill
|
||||||
scene = roomID == 6 ? "Windmill" : "Dampe's Grave";
|
scene = roomID == 6 ? "Windmill" : "Dampe's Grave";
|
||||||
} else {
|
} else if (sceneID < SCENE_ID_MAX) {
|
||||||
scene = sceneMappings[sceneID];
|
scene = sceneMappings[sceneID];
|
||||||
|
} else {
|
||||||
|
scene = "???";
|
||||||
}
|
}
|
||||||
return scene;
|
return scene;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user