1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 23:34:37 +01:00

Fix #16591: Plugins: setInterval and setTimeout is not disposed...

This commit is contained in:
Ted John
2022-02-15 19:44:21 +00:00
parent d0c019d222
commit 105009f3f8
2 changed files with 2 additions and 1 deletions

View File

@@ -44,6 +44,7 @@
- Fix: [#16535] Entering construction mode unblocks all paths.
- Fix: [#16542] “Same price throughout park” status not correctly imported for RCT1 saves.
- Fix: [#16572] Crash when trying to place track designs.
- Fix: [#16591] [Plugin] setInterval and setTimeout is not disposed when map unloads.
- Fix: [objects#165] Glitch when Bengal Tiger Cars go through a corner.
0.3.5.1 (2021-11-21)

View File

@@ -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();