(svn r20436) -Codechange: use GRFFilePropsBase's spritegroup for stations.

This commit is contained in:
rubidium
2010-08-10 15:51:33 +00:00
parent ca7a067b7a
commit 3d21fb44aa
3 changed files with 12 additions and 13 deletions

View File

@@ -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;