diff --git a/src/openttd.cpp b/src/openttd.cpp index 8b05cfe9af..b1808316c5 100644 --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -121,7 +121,7 @@ void UserErrorI(const std::string &str) EM_ASM(if (window["openttd_abort"]) openttd_abort()); #endif - exit(1); + _exit(1); } /**