(svn r22134) -Codechange: Move ReInit() of the landinfo window from DeleteNewGRFInspectWindow() into a InvalidateData call.

This commit is contained in:
frosch
2011-02-23 20:45:52 +00:00
parent eeeb70a82e
commit b7e7dcd01e
2 changed files with 11 additions and 2 deletions

View File

@@ -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);
}
/**