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;