mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix #4898: Crash when title sequences are missing
This commit is contained in:
parent
785a6ac850
commit
50a2e58b22
|
@ -86,6 +86,12 @@ public:
|
||||||
sint32 entryPosition = _position;
|
sint32 entryPosition = _position;
|
||||||
FixViewLocation();
|
FixViewLocation();
|
||||||
|
|
||||||
|
if (_sequence == nullptr)
|
||||||
|
{
|
||||||
|
SetViewLocation(75 * 32, 75 * 32);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
// Check that position is valid
|
// Check that position is valid
|
||||||
if (_position >= (sint32)_sequence->NumCommands)
|
if (_position >= (sint32)_sequence->NumCommands)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue