From 7c4e8421be406069662417a9c49dde77f679e0b5 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 21 Dec 2009 17:45:02 +0000 Subject: (svn r18590) -Fix [FS#3397]: too strict assert was triggered --- src/vehicle_gui.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2