Changeset - r12946:deb850a42481
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-09-07 10:00:14
rubidium@openttd.org
(svn r17449) -Fix (r17436): MSVC compile warning about comparing signed and unsigned values
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/economy.cpp
Show inline comments
 
@@ -890,7 +890,7 @@ static uint DeliverGoodsToIndustry(const
 
		/* Insert the industry into _cargo_delivery_destinations, if not yet contained */
 
		_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;
 
		num_pieces -= amount;
 
		accepted += amount;
0 comments (0 inline, 0 general)