diff options
author | darkvater <darkvater@openttd.org> | 2005-01-19 19:32:33 +0000 |
---|---|---|
committer | darkvater <darkvater@openttd.org> | 2005-01-19 19:32:33 +0000 |
commit | 7837be0575fe81a43f82c9bf0248da21757aaadd (patch) | |
tree | 9dc85e427bee4290f136ad7a4b13471430e08c37 | |
parent | 2fd3553d78d6b93fb85d97ae8e98beef5418a9c4 (diff) | |
download | openttd-7837be0575fe81a43f82c9bf0248da21757aaadd.tar.xz |
(svn r1569) -Fix: signed/unsigned mismatch
-rw-r--r-- | vehicle.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } } } |