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 authored and GitHub committed 2023-03-29 08:50:57 +00:00
1 parent 4cd4aaad9f
commit 745279cded
2 files changed
+6

No files matched your search

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