(svn r17673) -Codechange: make InvalidateThisWindowData a function of the window class

This commit is contained in:
rubidium
2009-09-30 21:00:35 +00:00
parent 2fa312aab9
commit 0032405093
6 changed files with 18 additions and 22 deletions

View File

@@ -663,7 +663,7 @@ static inline void ChangeVehicleWindow(WindowClass window_class, VehicleID from_
if (w != NULL) {
w->window_number = to_index;
if (w->viewport != NULL) w->viewport->follow_vehicle = to_index;
if (to_index != INVALID_VEHICLE) InvalidateThisWindowData(w, 0);
if (to_index != INVALID_VEHICLE) w->InvalidateData();
}
}