From 8271199d488e1b9b9ca4c12fc187d68bf2109a6c Mon Sep 17 00:00:00 2001 From: Francesco Bertolaccini Date: Mon, 18 Jun 2018 15:28:31 +0200 Subject: [PATCH] Check if the file exists before selecting it for loading --- src/logic/DialogManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logic/DialogManager.cpp b/src/logic/DialogManager.cpp index 1b6bb71a..f430cebb 100644 --- a/src/logic/DialogManager.cpp +++ b/src/logic/DialogManager.cpp @@ -355,7 +355,7 @@ bool DialogManager::init() for (const auto& outFile : {OU_FILE, OU_FILE_2}) { ou = Utils::getCaseSensitivePath(outFile, m_World.getEngine()->getEngineArgs().gameBaseDirectory); - if (!ou.empty()) + if (!ou.empty() && Utils::fileExists(ou)) break; }