Fix always clearing first slot in offline mode

This commit is contained in:
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]> {
return new Promise<[boolean, boolean]>(resolve => {
if (bypassLogin) {
localStorage.removeItem('sessionData');
localStorage.removeItem(`sessionData${slotId ? slotId : ''}`);
return resolve([true, true]);
}