Skip to content
This repository was archived by the owner on Jan 5, 2024. It is now read-only.

Commit 2ab81b4

Browse files
committed
Fix game crash when you try to load a save that doesn't exist (e.g. using Ctrl + F9 to load your autosave)
1 parent d4cd433 commit 2ab81b4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Managers/ActivityMan.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ namespace RTE {
150150
std::unique_ptr<Scene> scene(std::make_unique<Scene>());
151151
std::unique_ptr<GAScripted> activity(std::make_unique<GAScripted>());
152152

153-
Reader reader(g_PresetMan.GetFullModulePath(c_UserScriptedSavesModuleName) + "/" + fileName + ".ini", true, nullptr, false);
153+
Reader reader(g_PresetMan.GetFullModulePath(c_UserScriptedSavesModuleName) + "/" + fileName + ".ini", true, nullptr, true);
154154
if (!reader.ReaderOK()) {
155-
g_ConsoleMan.PrintString("ERROR: Game loading failed! Make sure you have a saved game called \"" + fileName + "\"");
155+
RTEError::ShowMessageBox("ERROR: Game loading failed! Make sure you have a saved game called \"" + fileName + "\"");
156156
return false;
157157
}
158158

0 commit comments

Comments
 (0)