Mercurial > hg > openttd
changeset 14047:41dee6877371 draft
(svn r18590) -Fix [FS#3397]: too strict assert was triggered
author | rubidium <rubidium@openttd.org> |
---|---|
date | Mon, 21 Dec 2009 17:45:02 +0000 |
parents | 425d4e2d7cb7 |
children | 014650278d9e |
files | src/vehicle_gui.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -181,7 +181,7 @@ } /* 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);