(svn r4721) - NewGRF: use loading sprites rather than loaded when there is no vehicle (fixes issue with purchase list)
authorpeter1138
Wed, 03 May 2006 20:51:42 +0000
changeset 3739 c96a784d5c53
parent 3738 4694e7a0e2e4
child 3740 4742b3d6f37b
(svn r4721) - NewGRF: use loading sprites rather than loaded when there is no vehicle (fixes issue with purchase list)
newgrf_engine.c
--- a/newgrf_engine.c	Wed May 03 20:42:45 2006 +0000
+++ b/newgrf_engine.c	Wed May 03 20:51:42 2006 +0000
@@ -643,7 +643,7 @@
 	uint set;
 	bool in_motion;
 
-	if (v == NULL) return group->g.real.loaded[0];
+	if (v == NULL) return group->g.real.loading[0];
 
 	if (v->type == VEH_Train) {
 		in_motion = GetFirstVehicleInChain(v)->current_order.type != OT_LOADING;