mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 19:13:07 +01:00
Fix #16591: Plugins: setInterval and setTimeout is not disposed...
This commit is contained in:
@@ -725,7 +725,7 @@ DukValue ScriptEngine::ExecutePluginCall(
|
||||
bool isGameStateMutable)
|
||||
{
|
||||
DukStackFrame frame(_context);
|
||||
if (func.is_function())
|
||||
if (func.is_function() && plugin->HasStarted())
|
||||
{
|
||||
ScriptExecutionInfo::PluginScope scope(_execInfo, plugin, isGameStateMutable);
|
||||
func.push();
|
||||
|
||||
Reference in New Issue
Block a user