summaryrefslogtreecommitdiff
path: root/src/newgrf_debug_gui.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-02-23 20:45:52 +0000
committerfrosch <frosch@openttd.org>2011-02-23 20:45:52 +0000
commit40cc3324fadce60522e97791604ae3a6643f4c2e (patch)
treedc9c0c4ae8d89636670ad0818392a07b5cfa2d12 /src/newgrf_debug_gui.cpp
parent1a3a1e3b0c80831c87c9ff903d1a6a5d422b191c (diff)
downloadopenttd-40cc3324fadce60522e97791604ae3a6643f4c2e.tar.xz
(svn r22134) -Codechange: Move ReInit() of the landinfo window from DeleteNewGRFInspectWindow() into a InvalidateData call.
Diffstat (limited to 'src/newgrf_debug_gui.cpp')
-rw-r--r--src/newgrf_debug_gui.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/newgrf_debug_gui.cpp b/src/newgrf_debug_gui.cpp
index f4c3b985a..99512515f 100644
--- a/src/newgrf_debug_gui.cpp
+++ b/src/newgrf_debug_gui.cpp
@@ -519,8 +519,7 @@ void DeleteNewGRFInspectWindow(GrfSpecFeature feature, uint index)
DeleteWindowById(WC_NEWGRF_INSPECT, wno);
/* Reinitialise the land information window to remove the "debug" sprite if needed. */
- Window *w = FindWindowById(WC_LAND_INFO, 0);
- if (w != NULL) w->ReInit();
+ InvalidateWindowData(WC_LAND_INFO, 0, 1);
}
/**