Force loadSaveSlot to set the logged in user's last session

This commit is contained in:
Sirz Benjie 2025-09-07 18:29:44 -05:00
parent 47dc3c25f2
commit 8e647b3a17
No known key found for this signature in database
GPG Key ID: 4A524B4D196C759E

View File

@ -177,6 +177,9 @@ export class TitlePhase extends Phase {
.then((success: boolean) => { .then((success: boolean) => {
if (success) { if (success) {
this.loaded = true; this.loaded = true;
if (loggedInUser) {
loggedInUser.lastSessionSlot = slotId;
}
globalScene.ui.showText(i18next.t("menu:sessionSuccess"), null, () => this.end()); globalScene.ui.showText(i18next.t("menu:sessionSuccess"), null, () => this.end());
} else { } else {
this.end(); this.end();