diff --git a/roadveh_gui.c b/roadveh_gui.c index 3f853483c0..e86127205f 100644 --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -453,6 +453,10 @@ void CcBuildRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2) static void NewRoadVehWndProc(Window *w, WindowEvent *e) { switch (e->event) { + case WE_INVALIDATE_DATA: + SetWindowDirty(w); + break; + case WE_PAINT: DrawNewRoadVehWindow(w); break; diff --git a/ship_gui.c b/ship_gui.c index 48867bb46a..3d16ec0b22 100644 --- a/ship_gui.c +++ b/ship_gui.c @@ -244,6 +244,10 @@ void CcCloneShip(bool success, TileIndex tile, uint32 p1, uint32 p2) static void NewShipWndProc(Window *w, WindowEvent *e) { switch (e->event) { + case WE_INVALIDATE_DATA: + SetWindowDirty(w); + break; + case WE_PAINT: { EngineID selected_id; EngineID eid;