summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-21 17:45:02 +0000
committerrubidium <rubidium@openttd.org>2009-12-21 17:45:02 +0000
commit7c4e8421be406069662417a9c49dde77f679e0b5 (patch)
tree7cb6bf9639b483561fe57b8725f42e6aa7fc19e4 /src
parent1d7a75032fcc468a137e9bf394602fa109d26a06 (diff)
downloadopenttd-7c4e8421be406069662417a9c49dde77f679e0b5.tar.xz
(svn r18590) -Fix [FS#3397]: too strict assert was triggered
Diffstat (limited to 'src')
-rw-r--r--src/vehicle_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp
index 4478f330d..1bfd70b74 100644
--- a/src/vehicle_gui.cpp
+++ b/src/vehicle_gui.cpp
@@ -181,7 +181,7 @@ byte GetBestFittingSubType(Vehicle *v_from, Vehicle *v_for)
}
/* It has to be possible for v_for to carry the cargo of v_from. */
- assert(HasBit(e_for->info.refit_mask, v_from->cargo_type));
+ if (!HasBit(e_for->info.refit_mask, v_from->cargo_type)) return 0;
StringID expected_string = GetCargoSubtypeText(v_from);