Fix: Gameplay Stats OOB (#2673)

* Handle `sceneMapping` OOB behavior

* whoops

* More solid definition of upper bound
This commit is contained in:
Ralphie Morell
2023-04-06 23:09:25 -04:00
committed by GitHub
parent 44906598e4
commit d434941724

View File

@@ -251,8 +251,10 @@ std::string ResolveSceneID(int sceneID, int roomID){
} else if (sceneID == SCENE_HAKASITARELAY) {
//Only the last room of Dampe's Grave (rm 6) is considered the windmill
scene = roomID == 6 ? "Windmill" : "Dampe's Grave";
} else {
} else if (sceneID < SCENE_ID_MAX) {
scene = sceneMappings[sceneID];
} else {
scene = "???";
}
return scene;
}