From f540b7d17fa01a6f43e3f9ba237f92c682e2fe9b Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Sat, 11 May 2024 20:33:03 -0400 Subject: [PATCH] Fix always clearing first slot in offline mode --- src/system/game-data.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/game-data.ts b/src/system/game-data.ts index bd1fcfae048..a213a35490a 100644 --- a/src/system/game-data.ts +++ b/src/system/game-data.ts @@ -754,7 +754,7 @@ export class GameData { tryClearSession(scene: BattleScene, slotId: integer): Promise<[success: boolean, newClear: boolean]> { return new Promise<[boolean, boolean]>(resolve => { if (bypassLogin) { - localStorage.removeItem('sessionData'); + localStorage.removeItem(`sessionData${slotId ? slotId : ''}`); return resolve([true, true]); }