mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-04 13:42:55 +01:00
Stop (and discard) the replay before tearing down the scripting engine (#22293)
Fixes a shutdown crash on tearing down Duktape values after their context has already been destroyed. Fixes #22056
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
- Feature: [OpenMusic#54] Added Progressive ride music style (feat. Approaching Nirvana).
|
||||
- Change: [#22230] The plugin/script engine is now initialised off the main thread.
|
||||
- Change: [#22251] Hide author info in the scenery window unless debug tools are active.
|
||||
- Fix: [#22056] Potential crash upon exiting the game.
|
||||
- Fix: [#22208] Cursor may fail to register hits in some cases.
|
||||
|
||||
0.4.12 (2024-07-07)
|
||||
|
||||
@@ -195,6 +195,7 @@ namespace OpenRCT2
|
||||
#endif
|
||||
|
||||
GameActions::ClearQueue();
|
||||
_replayManager->StopRecording(true);
|
||||
#ifndef DISABLE_NETWORK
|
||||
_network.Close();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user