1
0
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:
Silent
2024-07-15 08:43:06 +02:00
committed by GitHub
parent ab43ebdace
commit 76b55651b6
2 changed files with 2 additions and 0 deletions

View File

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

View File

@@ -195,6 +195,7 @@ namespace OpenRCT2
#endif
GameActions::ClearQueue();
_replayManager->StopRecording(true);
#ifndef DISABLE_NETWORK
_network.Close();
#endif