From a4c5fbe2952a629c4f98caf01297114197b87816 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 27 Dec 2019 10:48:43 +0100 Subject: [PATCH] - savegame name generation fix for SW. --- source/sw/src/save.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/sw/src/save.cpp b/source/sw/src/save.cpp index 204c0163d..b8533979c 100644 --- a/source/sw/src/save.cpp +++ b/source/sw/src/save.cpp @@ -245,8 +245,7 @@ bool GameInterface::SaveGame(FSaveGameNode *sv) Saveable_Init(); - auto game_name = G_BuildSaveName(sv->Filename); - OpenSaveGameForWrite(game_name); + OpenSaveGameForWrite(sv->Filename); // workaround until the level info here has been transitioned. G_WriteSaveHeader(sv->SaveTitle); fil = WriteSavegameChunk("snapshot.sw"); @@ -720,8 +719,7 @@ bool GameInterface::LoadGame(FSaveGameNode* sv) Saveable_Init(); - auto game_name = G_BuildSaveName(sv->Filename); - OpenSaveGameForRead(game_name); + OpenSaveGameForRead(sv->Filename); auto filr = ReadSavegameChunk("snapshot.sw"); if (!filr.isOpen()) return false;