diff --git a/distribution/changelog.txt b/distribution/changelog.txt index c667e8e5f4..2caf77378a 100644 --- a/distribution/changelog.txt +++ b/distribution/changelog.txt @@ -1,5 +1,6 @@ 0.4.5 (in development) ------------------------------------------------------------------------ +- Fix: [#19756] Crash with title sequences containing no commands 0.4.4 (2023-03-28) ------------------------------------------------------------------------ diff --git a/src/openrct2-ui/title/TitleSequencePlayer.cpp b/src/openrct2-ui/title/TitleSequencePlayer.cpp index c4a336bdb6..a927c853c7 100644 --- a/src/openrct2-ui/title/TitleSequencePlayer.cpp +++ b/src/openrct2-ui/title/TitleSequencePlayer.cpp @@ -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)