1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Fix #19756: Crash with title sequences containing no commands (#19761)

* Fix #19756: Crash with title sequences containing no commands

* Update changelog.txt
This commit is contained in:
Matthias Moninger
2023-03-29 11:50:57 +03:00
committed by GitHub
parent 4cd4aaad9f
commit 745279cded
2 changed files with 6 additions and 0 deletions

View File

@@ -1,5 +1,6 @@
0.4.5 (in development)
------------------------------------------------------------------------
- Fix: [#19756] Crash with title sequences containing no commands
0.4.4 (2023-03-28)
------------------------------------------------------------------------

View File

@@ -110,6 +110,11 @@ namespace OpenRCT2::Title
return false;
}
if (_sequence->Commands.empty())
{
return false;
}
// Run commands in order, until we reach one that is not instantly done
int32_t entryPosition = _position;
while (true)