Fixed sound played + added better conditional

This commit is contained in:
frutescens 2024-10-03 11:40:52 -07:00
parent b9303e5009
commit 0799e6ff02

View File

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