# HG changeset patch # User Peter Nelson # Date 2024-02-18 12:20:11 # Node ID 04cbd7c8fefa44d737aeb05bb1dd50c69e1a51df # Parent ee8d01cc7e15765d4e1e6be39871d21d0ab03dbe Fix a258833: Don't invalidate station list on vehicle load/unload. (#12112) a258833 fixed a bug but as a result causes the station list to be rebuilt every time (once per game tick) a vehicle loads/unloads. Instead just mark the window for redraw. diff --git a/src/economy.cpp b/src/economy.cpp --- a/src/economy.cpp +++ b/src/economy.cpp @@ -1942,7 +1942,7 @@ static void LoadUnloadVehicle(Vehicle *f if (dirty_station) { st->MarkTilesDirty(true); SetWindowDirty(WC_STATION_VIEW, st->index); - InvalidateWindowData(WC_STATION_LIST, st->owner); + SetWindowDirty(WC_STATION_LIST, st->owner); } }