mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r1569) -Fix: signed/unsigned mismatch
This commit is contained in:
parent
2fd3553d78
commit
7837be0575
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue