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
commit d434941724
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
} }