From 3acec45f9792df05aa02fbbd27d963ddcce62a1b Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 14 May 2022 15:44:35 +0100 Subject: [PATCH] Mark plugins that errored in main as started (#17207) This is to make sure plugin still runs stop / clean up code before it is unloaded. Otherwise context menu items etc. are not removed. --- src/openrct2/scripting/Plugin.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/openrct2/scripting/Plugin.cpp b/src/openrct2/scripting/Plugin.cpp index 17a9e47094..b64ee7f7d8 100644 --- a/src/openrct2/scripting/Plugin.cpp +++ b/src/openrct2/scripting/Plugin.cpp @@ -97,7 +97,6 @@ void Plugin::Start() { auto val = std::string(duk_safe_to_string(_context, -1)); duk_pop(_context); - _hasStarted = false; throw std::runtime_error("[" + _metadata.Name + "] " + val); } duk_pop(_context);