Update src/ui/save-slot-select-ui-handler.ts

Co-authored-by: MokaStitcher <54149968+MokaStitcher@users.noreply.github.com>
This commit is contained in:
Mumble 2024-10-03 11:29:15 -07:00 committed by GitHub
parent 2fdf357735
commit b9303e5009
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -168,7 +168,7 @@ export default class SaveSlotSelectUiHandler extends MessageUiHandler {
}
break;
case Button.RIGHT:
if (this.sessionSlots[this.cursor].hasData) {
if (this.sessionSlots[cursorPosition].hasData) {
this.scene.ui.setOverlayMode(Mode.RUN_INFO, this.sessionSlots[cursorPosition].saveData, RunDisplayMode.SESSION_PREVIEW);
}
}