fix map WAD check for savegame validation.

This commit is contained in:
Professor Hastig 2023-10-26 10:31:05 +02:00 committed by Rachael Alexanderson
parent eeac40fffc
commit 1e8b3ea65d

View file

@ -1890,12 +1890,12 @@ static bool CheckSingleWad (const char *name, bool &printRequires, bool printwar
bool G_CheckSaveGameWads (FSerializer &arc, bool printwarn) bool G_CheckSaveGameWads (FSerializer &arc, bool printwarn)
{ {
bool printRequires = false; bool printRequires = false;
FString text; const char* text;
text = arc.GetString("Game WAD"); text = arc.GetString("Game WAD");
CheckSingleWad (text.GetChars(), printRequires, printwarn); CheckSingleWad (text, printRequires, printwarn);
text = arc.GetString("Map WAD"); text = arc.GetString("Map WAD");
CheckSingleWad (text.GetChars(), printRequires, printwarn); if (text != nullptr) CheckSingleWad (text, printRequires, printwarn);
if (printRequires) if (printRequires)
{ {