Mercurial > hg > openttd
changeset 2610:ce441a33fa17 draft
(svn r3147) Fix crash when building dual-head rail vehicles...
author | peter1138 <peter1138@openttd.org> |
---|---|
date | Sun, 06 Nov 2005 13:29:28 +0000 |
parents | b94f6cd08063 |
children | d533d740bad1 |
files | train_cmd.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/train_cmd.c +++ b/train_cmd.c @@ -697,7 +697,7 @@ 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)) {