Fix #4898: Crash when title sequences are missing

This commit is contained in:
Ted John authored and Gymnasiast committed 2016-12-21 21:17:24 +01:00
1 parent df2cd48c52
commit f2eb4c237d
1 file changed
+6
+6
View File
@@ -86,6 +86,12 @@ public:
sint32 entryPosition = _position;
FixViewLocation();
if (_sequence == nullptr)
{
SetViewLocation(75 * 32, 75 * 32);
return false;
}
// Check that position is valid
if (_position >= (sint32)_sequence->NumCommands)
{