From 2e8af03b36a118c2a969fd6b2593d0a047899aa2 Mon Sep 17 00:00:00 2001 From: Steve Date: Tue, 13 Mar 2018 08:25:08 +0000 Subject: [PATCH] Fix for demo data. --- src/hub/hub.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hub/hub.c b/src/hub/hub.c index 3b7ace4..6aeb4fc 100644 --- a/src/hub/hub.c +++ b/src/hub/hub.c @@ -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; }