mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-11 13:10:45 +00:00
(svn r18590) -Fix [FS#3397]: too strict assert was triggered
This commit is contained in:
parent
1d7a75032f
commit
7c4e8421be
@ -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. */
|
/* 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);
|
StringID expected_string = GetCargoSubtypeText(v_from);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user