Fix restart command skipping first command in title sequence

This commit is contained in:
Ted John 2016-12-24 17:26:30 +00:00
parent ff6f46bce3
commit f6cb95e534
1 changed files with 4 additions and 1 deletions

View File

@ -129,7 +129,10 @@ public:
{
break;
}
IncrementPosition();
if (command->Type != TITLE_SCRIPT_RESTART)
{
IncrementPosition();
}
if (_position == entryPosition)
{
Console::Error::WriteLine("Infinite loop detected in title sequence.");