Fix always clearing first slot in offline mode

pull/611/head
Flashfyre 2024-05-11 20:33:03 -04:00
parent 3f9158083e
commit f540b7d17f
1 changed files with 1 additions and 1 deletions

View File

@ -754,7 +754,7 @@ export class GameData {
tryClearSession(scene: BattleScene, slotId: integer): Promise<[success: boolean, newClear: boolean]> { tryClearSession(scene: BattleScene, slotId: integer): Promise<[success: boolean, newClear: boolean]> {
return new Promise<[boolean, boolean]>(resolve => { return new Promise<[boolean, boolean]>(resolve => {
if (bypassLogin) { if (bypassLogin) {
localStorage.removeItem('sessionData'); localStorage.removeItem(`sessionData${slotId ? slotId : ''}`);
return resolve([true, true]); return resolve([true, true]);
} }