# HG changeset patch # User peter1138 # Date 1146658622 0 # Node ID ab294968b9eb5278e44ae0f474a933ce629b8b29 # Parent cb7f3617bc4a4df2c639bf2929c15ddb2047776a (svn r4708) - NewGRF: fix selection of number of loaded and loading states. diff -r cb7f3617bc4a -r ab294968b9eb newgrf_engine.c --- a/newgrf_engine.c Wed May 03 11:19:17 2006 +0000 +++ b/newgrf_engine.c Wed May 03 12:17:02 2006 +0000 @@ -653,7 +653,7 @@ *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;