(svn r9439) -Codechange: check for valid default cargo type even if a vehicle is not refittable...
authorpeter1138
Sun, 25 Mar 2007 10:43:27 +0000
changeset 6702 57fdddcffcfc
parent 6701 d4c3cb84e494
child 6703 9ddfcb1849e4
(svn r9439) -Codechange: check for valid default cargo type even if a vehicle is not refittable...
src/newgrf.cpp
--- a/src/newgrf.cpp	Sun Mar 25 08:13:07 2007 +0000
+++ b/src/newgrf.cpp	Sun Mar 25 10:43:27 2007 +0000
@@ -4420,8 +4420,6 @@
 		}
 		_engine_info[engine].refit_mask = ((mask & ~not_mask) ^ xor_mask) & _cargo_mask;
 
-		if (_engine_info[engine].refit_mask == 0) continue;
-
 		/* Check if this engine's cargo type is valid. If not, set to the first refittable
 		 * cargo type. Apparently cargo_type isn't a common property... */
 		switch (GetEngine(engine)->type) {