From ada9fc873eb4df7fc9a9c8e1b64746db0781cb1b Mon Sep 17 00:00:00 2001 From: darkvater Date: Wed, 19 Jan 2005 19:32:33 +0000 Subject: (svn r1569) -Fix: signed/unsigned mismatch --- vehicle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } } -- cgit v1.2.3-70-g09d2