From 8f7ee38377585b17a45da471ce8886f4c6ec35fb Mon Sep 17 00:00:00 2001 From: Relintai Date: Tue, 2 Jan 2024 13:56:15 +0100 Subject: [PATCH] Fix running standalone scripts in non-editor builds. --- main/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/main.cpp b/main/main.cpp index 1dfcbe9d7..30ebe8287 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -607,7 +607,7 @@ Error Main::setup(const char *execpath, int argc, char *argv[], bool p_second_ph #ifndef TOOLS_ENABLED } else if (I->get() == "-s" || I->get() == "--script") { has_script = true; - + main_args.push_back(I->get()); #endif } else if (I->get() == "-v" || I->get() == "--verbose") { // verbose output