(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 5926 97834f38dab2
parent 5925 f8e678955ef1
child 5927 d740cab19ca0
(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