# HG changeset patch # User Darkvater # Date 1168814599 0 # Node ID bbc57cf5cf184cfe7ab19bcfe1b54cd12493f3b0 # Parent abe7d6b7b1d461bb7414532c882f5882487ac180 (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. diff -r abe7d6b7b1d4 -r bbc57cf5cf18 src/newgrf_config.cpp --- a/src/newgrf_config.cpp Sun Jan 14 22:39:53 2007 +0000 +++ b/src/newgrf_config.cpp Sun Jan 14 22:43:19 2007 +0000 @@ -157,7 +157,7 @@ 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