forked from rosebudai/OpenRCT2-Web
Fix #16591: Plugins: setInterval and setTimeout is not disposed...
This commit is contained in:
1 parent
d0c019d222
commit
105009f3f8
2 files changed
+2
-1
No files matched your search
@@ -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