diff options
author | rubidium <rubidium@openttd.org> | 2007-05-15 06:20:16 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-15 06:20:16 +0000 |
commit | a390db6941fa5911e92d39e2f926df16dc4af984 (patch) | |
tree | a34346b1646ccb061d4da3d97af5d515fc3155ad /src | |
parent | 54de7d90f6c4776aa55ad6358cac9fbe97265029 (diff) | |
download | openttd-a390db6941fa5911e92d39e2f926df16dc4af984.tar.xz |
(svn r9840) -Fix (r9838): MSVC is complaining about signedness again (Belugas).
Diffstat (limited to 'src')
-rw-r--r-- | src/economy.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/economy.cpp b/src/economy.cpp index 1f61c890e..09f3de0c0 100644 --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1449,7 +1449,7 @@ static void LoadUnloadVehicle(Vehicle *v, int *cargo_left) int unloading_time = 0; Vehicle *u = v; int result = 0; - uint cap; + int cap; bool completely_empty = true; bool anything_unloaded = false; @@ -1473,7 +1473,7 @@ static void LoadUnloadVehicle(Vehicle *v, int *cargo_left) } GoodsEntry *ge = &st->goods[v->cargo_type]; - uint count = GB(ge->waiting_acceptance, 0, 12); + int count = GB(ge->waiting_acceptance, 0, 12); if (HASBIT(v->vehicle_flags, VF_CARGO_UNLOADING)) { uint16 amount_unloaded = _patches.gradual_loading ? min(v->cargo_count, load_amount) : v->cargo_count; |