From 7c8591bb653cb5d0033e7f20718d43e3b63150cf Mon Sep 17 00:00:00 2001 From: MihailRis Date: Tue, 7 May 2024 22:32:53 +0300 Subject: [PATCH] args parser fix --- src/util/command_line.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {