Fixed save manager loading old version of save previously opened
This commit is contained in:
parent
94a7f41fd1
commit
5156193a60
1 changed files with 1 additions and 0 deletions
|
@ -237,6 +237,7 @@ function openSave(id: string) {
|
|||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
saves.value[player.id]!.time = player.time;
|
||||
save();
|
||||
cachedSaves[player.id] = undefined;
|
||||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
||||
loadSave(saves.value[id]!);
|
||||
// Delete cached version in case of opening it again
|
||||
|
|
Loading…
Reference in a new issue