From f56fbbfed96629e5fb2f32ffd4ea97e4eb0c646e Mon Sep 17 00:00:00 2001 From: peter1138 <peter1138@openttd.org> Date: Sun, 25 Mar 2007 10:43:27 +0000 Subject: [PATCH] (svn r9439) -Codechange: check for valid default cargo type even if a vehicle is not refittable... --- src/newgrf.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 1c853bb360..d83634188d 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -4420,8 +4420,6 @@ static void CalculateRefitMasks() } _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) {