mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-23 23:52:37 +00:00
(svn r3147) Fix crash when building dual-head rail vehicles...
This commit is contained in:
parent
b58cfc36da
commit
220b4c27c1
@ -697,7 +697,7 @@ int32 CmdBuildRailVehicle(int x, int y, uint32 flags, uint32 p1, uint32 p2)
|
||||
if (rvi->flags&RVI_MULTIHEAD && HASBIT(p2,0))
|
||||
value /= 2;
|
||||
|
||||
num_vehicles = (rvi->flags & RVI_MULTIHEAD && HASBIT(p2, 0)) ? 2 : 1;
|
||||
num_vehicles = (rvi->flags & RVI_MULTIHEAD && !HASBIT(p2, 0)) ? 2 : 1;
|
||||
num_vehicles += CountArticulatedParts(rvi, p1);
|
||||
|
||||
if (!(flags & DC_QUERY_COST)) {
|
||||
|
Loading…
Reference in New Issue
Block a user