(svn r6714) -Codechange: replaced a direct manipulation of windows with InvalidateWindowData() in rail_cmd.c

Moved the actual modification of railtype to WE_INVALIDATE_DATA in the train depot handler
-Codechange: added SetWindowDirty() to WE_INVALIDATE_DATA as it made no sense to update the list without making the window dirty
This commit is contained in:
bjarni
2006-10-10 08:14:30 +00:00
parent 583fce3fa9
commit 3dfe48b189
4 changed files with 4 additions and 8 deletions

View File

@@ -548,6 +548,7 @@ static void NewAircraftWndProc(Window *w, WindowEvent *e)
case WE_INVALIDATE_DATA:
WP(w,buildvehicle_d).data_invalidated = true;
SetWindowDirty(w);
break;
case WE_DESTROY: