From 2677c60f11d6cb9679cca4d24b740b2df04ac7aa Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 21 May 2023 12:26:55 +0100 Subject: [PATCH] Don't show different version warning in save window when no file selected --- src/fios_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fios_gui.cpp b/src/fios_gui.cpp index 0fa640130f..be26082967 100644 --- a/src/fios_gui.cpp +++ b/src/fios_gui.cpp @@ -817,7 +817,7 @@ public: /* Show a caption box asking whether the user is sure to overwrite the save */ ShowQuery(STR_SAVELOAD_OVERWRITE_TITLE_DIFFERENT_ID, STR_SAVELOAD_OVERWRITE_WARNING_DIFFERENT_ID, this, SaveLoadWindow::SaveGameConfirmationCallback); } else if (_settings_client.gui.savegame_overwrite_confirm >= (known_id ? 3 : 2) && file_exists) { - if (!_load_check_data.sl_is_ext_version) { + if (this->selected != nullptr && !_load_check_data.sl_is_ext_version) { const char *version = GamelogGetLastRevision(_load_check_data.gamelog_action, _load_check_data.gamelog_actions); SetDParam(0, STR_SAVELOAD_OVERWRITE_TITLE);