(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.

pull/155/head
Darkvater 18 years ago
parent 62db889664
commit 6133bd1b31

@ -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

Loading…
Cancel
Save