summaryrefslogtreecommitdiff
path: root/src/newgrf_station.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-10 15:51:33 +0000
committerrubidium <rubidium@openttd.org>2010-08-10 15:51:33 +0000
commit3d21fb44aae10d627cf24c7e42485c8f3a33ed42 (patch)
treecb41a3103b0a272d888f079872cb4f6609a1266b /src/newgrf_station.cpp
parentca7a067b7a57578e05cefec1ef647a67a9b5be07 (diff)
downloadopenttd-3d21fb44aae10d627cf24c7e42485c8f3a33ed42.tar.xz
(svn r20436) -Codechange: use GRFFilePropsBase's spritegroup for stations.
Diffstat (limited to 'src/newgrf_station.cpp')
-rw-r--r--src/newgrf_station.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/newgrf_station.cpp b/src/newgrf_station.cpp
index c04c0665a..e5109e073 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -550,7 +550,7 @@ static const SpriteGroup *ResolveStation(ResolverObject *object)
/* Pick the first cargo that we have waiting */
const CargoSpec *cs;
FOR_ALL_CARGOSPECS(cs) {
- if (object->u.station.statspec->spritegroup[cs->Index()] != NULL &&
+ if (object->u.station.statspec->grf_prop.spritegroup[cs->Index()] != NULL &&
!st->goods[cs->Index()].cargo.Empty()) {
ctype = cs->Index();
break;
@@ -558,10 +558,10 @@ static const SpriteGroup *ResolveStation(ResolverObject *object)
}
}
- group = object->u.station.statspec->spritegroup[ctype];
+ group = object->u.station.statspec->grf_prop.spritegroup[ctype];
if (group == NULL) {
ctype = CT_DEFAULT;
- group = object->u.station.statspec->spritegroup[ctype];
+ group = object->u.station.statspec->grf_prop.spritegroup[ctype];
}
if (group == NULL) return NULL;