From eafbc3362794d792b46a21697745c9eaa4815c84 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 3 May 2006 12:17:02 +0000 Subject: (svn r4708) - NewGRF: fix selection of number of loaded and loading states. --- newgrf_engine.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2