diff options
author | peter1138 <peter1138@openttd.org> | 2007-03-25 10:43:27 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-03-25 10:43:27 +0000 |
commit | f56fbbfed96629e5fb2f32ffd4ea97e4eb0c646e (patch) | |
tree | dce977527c2a184acdc8d84e2afebd98a2553af9 /src | |
parent | e74169364c92bb51d4ed4549fbd5cd3f44440952 (diff) | |
download | openttd-f56fbbfed96629e5fb2f32ffd4ea97e4eb0c646e.tar.xz |
(svn r9439) -Codechange: check for valid default cargo type even if a vehicle is not refittable...
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 1c853bb36..d83634188 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) { |