Fix always clearing first slot in offline mode
This commit is contained in:
parent
3f9158083e
commit
f540b7d17f
|
@ -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]);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue