summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2011-03-30 21:39:44 +0000
committeryexo <yexo@openttd.org>2011-03-30 21:39:44 +0000
commit23d437293464a1ef95fe84829ceea3b6ed4f4ffc (patch)
treebf881a5fc1c05f798a4c85666b27c3f21cf9a89d /src
parent2124ae0ef7737c0e61029771dd655b80bd2b9711 (diff)
downloadopenttd-23d437293464a1ef95fe84829ceea3b6ed4f4ffc.tar.xz
(svn r22280) -Fix: update the 40+x station vars caches when displaying them in the NewGRF debug gui
Diffstat (limited to 'src')
-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 06d6fdc01..768e0085c 100644
--- a/src/newgrf_station.cpp
+++ b/src/newgrf_station.cpp
@@ -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);
}