summaryrefslogtreecommitdiff
path: root/engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'engine.c')
-rw-r--r--engine.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/engine.c b/engine.c
index af3bb6df7..4083408da 100644
--- a/engine.c
+++ b/engine.c
@@ -334,8 +334,8 @@ static RealSpriteGroup* ResolveVehicleSpriteGroup(SpriteGroup *spritegroup,
chain_after++;
};
- value = chain_before << 16 | chain_after << 8
- | (chain_before + chain_after + 1);
+ value = chain_before | chain_after << 8
+ | (chain_before + chain_after) << 16;
} else {
value = 1; /* 1 vehicle in the chain */
}