From 1e8b3ea65d9a29feb121e52e76f324f3b63145fb Mon Sep 17 00:00:00 2001 From: Professor Hastig Date: Thu, 26 Oct 2023 10:31:05 +0200 Subject: [PATCH] fix map WAD check for savegame validation. --- src/g_game.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/g_game.cpp b/src/g_game.cpp index 90f12896b..e072d0eee 100644 --- a/src/g_game.cpp +++ b/src/g_game.cpp @@ -1890,12 +1890,12 @@ static bool CheckSingleWad (const char *name, bool &printRequires, bool printwar bool G_CheckSaveGameWads (FSerializer &arc, bool printwarn) { bool printRequires = false; - FString text; + const char* text; text = arc.GetString("Game WAD"); - CheckSingleWad (text.GetChars(), printRequires, printwarn); + CheckSingleWad (text, printRequires, printwarn); text = arc.GetString("Map WAD"); - CheckSingleWad (text.GetChars(), printRequires, printwarn); + if (text != nullptr) CheckSingleWad (text, printRequires, printwarn); if (printRequires) {