1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 00:04:43 +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

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