From de10e911cbcc09b56eff3bc9ab4fe7045c3e6efc Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sun, 14 Jan 2007 22:43:19 +0000 Subject: (svn r8135) -Fix (r7582): Don't assert on duplicate non-static grfs when removing duplicates as the PEBKAC effect can result in the user adding the same grf's in the config file. --- src/newgrf_config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/newgrf_config.cpp b/src/newgrf_config.cpp index 39cb9215d..288d06aba 100644 --- a/src/newgrf_config.cpp +++ b/src/newgrf_config.cpp @@ -157,7 +157,7 @@ static void RemoveDuplicatesFromGRFConfigList(GRFConfig *list) for (prev = list, cur = list->next; cur != NULL; prev = cur, cur = cur->next) { if (cur->grfid != list->grfid) continue; - assert(HASBIT(cur->flags, GCF_STATIC)); + prev->next = cur->next; ClearGRFConfig(&cur); cur = prev; // Just go back one so it continues as normal later on -- cgit v1.2.3-70-g09d2