summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2005-01-19 19:32:33 +0000
committerdarkvater <darkvater@openttd.org>2005-01-19 19:32:33 +0000
commitada9fc873eb4df7fc9a9c8e1b64746db0781cb1b (patch)
tree9dc85e427bee4290f136ad7a4b13471430e08c37
parent467e4b82bfb6ceb2197a73372d9e417b8d9ff59c (diff)
downloadopenttd-ada9fc873eb4df7fc9a9c8e1b64746db0781cb1b.tar.xz
(svn r1569) -Fix: signed/unsigned mismatch
-rw-r--r--vehicle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle.c b/vehicle.c
index ef086d7b0..55843adf0 100644
--- a/vehicle.c
+++ b/vehicle.c
@@ -1375,7 +1375,7 @@ int32 CmdReplaceVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2)
}
} else {
if ( u->engine_type == old_engine_type && RailVehInfo(old_engine_type)->flags & RVI_MULTIHEAD) {
- if (v->next != NULL) rear_engine_cost = -u->value;
+ if (v->next != NULL) rear_engine_cost = -(int32)u->value;
}
}
}