Changeset - r7655:aaa1f0485e82
[Not reviewed]
master
0 1 0
rubidium - 17 years ago 2007-09-30 14:29:45
rubidium@openttd.org
(svn r11186) -Fix: only fill the accepted cargo fields once, not multiple times.
1 file changed with 2 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/industry_cmd.cpp
Show inline comments
 
@@ -358,7 +358,8 @@ static void GetAcceptedCargo_Industry(Ti
 

	
 
	for (byte i = 0; i < lengthof(itspec->accepts_cargo); i++) {
 
		CargoID a = accepts_cargo[i];
 
		if (a != CT_INVALID) ac[a] = acceptance[i];
 
		/* Only set the value once. */
 
		if (a != CT_INVALID && ac[a] == 0) ac[a] = acceptance[i];
 
	}
 
}
 

	
0 comments (0 inline, 0 general)