(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.
authorDarkvater
Sun, 14 Jan 2007 22:43:19 +0000
changeset 5675 bbc57cf5cf18
parent 5674 abe7d6b7b1d4
child 5676 7a641ebbc080
(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
--- 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