Fixed save manager loading old version of save previously opened

This commit is contained in:
thepaperpilot 2022-04-24 14:37:26 -05:00
parent 94a7f41fd1
commit 5156193a60

View file

@ -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