summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-22 22:28:15 +0000
committerrubidium <rubidium@openttd.org>2007-06-22 22:28:15 +0000
commit117368a5a991f5dc64c60e442f3b611f27347cc7 (patch)
treed9b82a1bf63a9b8278fda19af4a3809c477b5544 /src/economy.cpp
parent8d415469ccd1d97de12c072bddd4a2397c68f36a (diff)
downloadopenttd-117368a5a991f5dc64c60e442f3b611f27347cc7.tar.xz
(svn r10287) -Fix (r10266): some surprises from that (almost always) complaining compiler...
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 2f12a070e..9fbfee677 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -1586,7 +1586,7 @@ static void LoadUnloadVehicle(Vehicle *v, int *cargo_left)
if (_patches.gradual_loading) cap = min(cap, load_amount);
if (_patches.improved_load) {
/* Don't load stuff that is already 'reserved' for other vehicles */
- cap = min(cargo_left[v->cargo_type], cap);
+ cap = min((uint)cargo_left[v->cargo_type], cap);
cargo_left[v->cargo_type] -= cap;
}