Changeset - r5675:dc81b4d0bd0a
[Not reviewed]
master
0 1 0
Darkvater - 17 years ago 2007-01-14 22:43:19
darkvater@openttd.org
(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.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_config.cpp
Show inline comments
 
@@ -157,7 +157,7 @@ static void RemoveDuplicatesFromGRFConfi
 

	
 
	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
0 comments (0 inline, 0 general)