diff --git a/src/util/command_line.hpp b/src/util/command_line.hpp index 8b4ff22a..b23ea9b1 100644 --- a/src/util/command_line.hpp +++ b/src/util/command_line.hpp @@ -2,6 +2,7 @@ #define UTIL_COMMAND_LINE_HPP_ #include +#include #include #include #include "../files/engine_paths.hpp" @@ -19,7 +20,7 @@ public: } bool hasNext() const { - return pos < argc; + return pos < argc && strlen(argv[pos]); } bool isKeywordArg() const {