aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Sandulenko2016-05-16 10:18:00 +0200
committerEugene Sandulenko2016-05-16 10:18:00 +0200
commit97a2a9c622332ab6d5a8850b5b03a9cbf046f67a (patch)
tree03f0f0c91a44da1ffc95ab1eca16e7fca2aef37d
parentb46bb554442f4ead6dd26ee46195e636d55fcc06 (diff)
parenta406ce6d557a79a32b3d8b7f6c60971806cd06a5 (diff)
downloadscummvm-rg350-97a2a9c622332ab6d5a8850b5b03a9cbf046f67a.tar.gz
scummvm-rg350-97a2a9c622332ab6d5a8850b5b03a9cbf046f67a.tar.bz2
scummvm-rg350-97a2a9c622332ab6d5a8850b5b03a9cbf046f67a.zip
Merge pull request #710 from vandalo/master
COMMON: Fix wrong warning message
-rw-r--r--base/main.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 587e32804f..1df90c2d57 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -151,8 +151,11 @@ static Common::Error runGame(const EnginePlugin *plugin, OSystem &system, const
#endif
// Verify that the game path refers to an actual directory
- if (!(dir.exists() && dir.isDirectory()))
+ if (!dir.exists()) {
+ err = Common::kPathDoesNotExist;
+ } else if (!dir.isDirectory()) {
err = Common::kPathNotDirectory;
+ }
// Create the game engine
if (err.getCode() == Common::kNoError) {