summaryrefslogtreecommitdiff
path: root/newgrf_engine.c
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-03 12:17:02 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-03 12:17:02 +0000
commitd50896be6337e0574d6de03aa08bfe08261524c6 (patch)
tree1364994e3926846a91cd472aa2268653f26ea72c /newgrf_engine.c
parent102ca98c1c53eb4888a01ba355ba5d08d798eb49 (diff)
downloadopenttd-d50896be6337e0574d6de03aa08bfe08261524c6.tar.xz
(svn r4708) - NewGRF: fix selection of number of loaded and loading states.
Diffstat (limited to 'newgrf_engine.c')
-rw-r--r--newgrf_engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf_engine.c b/newgrf_engine.c
index 5c386ccc9..4b958350f 100644
--- a/newgrf_engine.c
+++ b/newgrf_engine.c
@@ -653,7 +653,7 @@ static uint32 VehicleResolveReal(const ResolverObject *object, uint num_loaded,
*in_motion = v->current_order.type != OT_LOADING;
}
- totalsets = in_motion ? num_loaded : num_loading;
+ totalsets = *in_motion ? num_loaded : num_loading;
if (v->cargo_count == v->cargo_cap || totalsets == 1) {
set = totalsets - 1;