1
0
Fork 0

(svn r22280) -Fix: update the 40+x station vars caches when displaying them in the NewGRF debug gui

release/1.2
yexo 2011-03-30 21:39:44 +00:00
parent 2124ae0ef7
commit 23d4372934
1 changed files with 3 additions and 3 deletions

View File

@ -539,6 +539,9 @@ static void NewStationResolver(ResolverObject *res, const StationSpec *statspec,
res->reseed = 0;
res->count = 0;
res->grffile = (statspec != NULL ? statspec->grf_prop.grffile : NULL);
/* Invalidate all cached vars */
_svc.valid = 0;
}
static const SpriteGroup *ResolveStation(ResolverObject *object)
@ -573,9 +576,6 @@ static const SpriteGroup *ResolveStation(ResolverObject *object)
/* Remember the cargo type we've picked */
object->u.station.cargo_type = ctype;
/* Invalidate all cached vars */
_svc.valid = 0;
return SpriteGroup::Resolve(group, object);
}