mirror of https://github.com/OpenTTD/OpenTTD
(svn r17449) -Fix (r17436): MSVC compile warning about comparing signed and unsigned values
parent
b4e5383078
commit
8186dd616b
|
@ -890,7 +890,7 @@ static uint DeliverGoodsToIndustry(const Station *st, CargoID cargo_type, uint n
|
||||||
/* Insert the industry into _cargo_delivery_destinations, if not yet contained */
|
/* Insert the industry into _cargo_delivery_destinations, if not yet contained */
|
||||||
_cargo_delivery_destinations.Include(ind);
|
_cargo_delivery_destinations.Include(ind);
|
||||||
|
|
||||||
uint amount = min(num_pieces, 0xFFFF - ind->incoming_cargo_waiting[cargo_index]);
|
uint amount = min(num_pieces, 0xFFFFU - ind->incoming_cargo_waiting[cargo_index]);
|
||||||
ind->incoming_cargo_waiting[cargo_index] += amount;
|
ind->incoming_cargo_waiting[cargo_index] += amount;
|
||||||
num_pieces -= amount;
|
num_pieces -= amount;
|
||||||
accepted += amount;
|
accepted += amount;
|
||||||
|
|
Loading…
Reference in New Issue