Fix for demo data.

This commit is contained in:
Steve 2018-03-13 08:25:08 +00:00
parent 698535344f
commit 2e8af03b36
1 changed files with 3 additions and 1 deletions

View File

@ -141,6 +141,8 @@ void initHub(void)
}
}
teeka = NULL;
for (mission = hubMissionHead.next ; mission != NULL ; mission = mission->next)
{
if (requiredMissionUnlocked(mission->requires) || dev.cheatLevels)
@ -180,7 +182,7 @@ void initHub(void)
}
}
if (!unlockTeeka)
if (!unlockTeeka && teeka != NULL)
{
teeka->status = MS_LOCKED;
}