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:
@@ -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)
|
||||
|
||||
@@ -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