summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-03 20:51:42 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-03 20:51:42 +0000
commit79f062813979cdf32f83244afed5a4e051179471 (patch)
tree8a97843e7d7a317842fc1a717114a46e4036de7b
parentdebfc88862d4476872c77fb512de2aeb1c757ca2 (diff)
downloadopenttd-79f062813979cdf32f83244afed5a4e051179471.tar.xz
(svn r4721) - NewGRF: use loading sprites rather than loaded when there is no vehicle (fixes issue with purchase list)
-rw-r--r--newgrf_engine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/newgrf_engine.c b/newgrf_engine.c
index 326b251d4..ac3c0415e 100644
--- a/newgrf_engine.c
+++ b/newgrf_engine.c
@@ -643,7 +643,7 @@ static const SpriteGroup *VehicleResolveReal(const ResolverObject *object, const
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;