Fix session slot always saving to first slot in offline mode

This commit is contained in:
Flashfyre 2024-05-08 16:36:44 -04:00
parent 3ec9081a77
commit e993bf9945
1 changed files with 1 additions and 1 deletions

View File

@ -569,7 +569,7 @@ export class GameData {
resolve(true);
});
} else {
localStorage.setItem('sessionData', btoa(JSON.stringify(sessionData)));
localStorage.setItem(`sessionData${scene.sessionSlotId ? scene.sessionSlotId : ''}`, btoa(JSON.stringify(sessionData)));
console.debug('Session data saved');