diff options
-rw-r--r-- | base/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/main.cpp b/base/main.cpp index ccd213eb31..a9602e0b6a 100644 --- a/base/main.cpp +++ b/base/main.cpp @@ -162,11 +162,11 @@ static Common::Error runGame(const Plugin *plugin, OSystem &system, const Common #endif // Verify that the game path refers to an actual directory - if (!dir.exists()) { + if (!dir.exists()) { err = Common::kPathDoesNotExist; - } else if (!dir.isDirectory()) { + } else if (!dir.isDirectory()) { err = Common::kPathNotDirectory; - } + } // Create the game engine if (err.getCode() == Common::kNoError) { |