diff options
author | rubidium <rubidium@openttd.org> | 2008-05-18 16:51:44 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-18 16:51:44 +0000 |
commit | 9defec78767131d1dc9765c8943ae3bb165e8713 (patch) | |
tree | 4fbae4aa35ef120179cf9069c2eb93fa136ed7a2 /src/train_gui.cpp | |
parent | aab9e191f5612d0ddf309d8ec9de109218babd32 (diff) | |
download | openttd-9defec78767131d1dc9765c8943ae3bb165e8713.tar.xz |
(svn r13165) -Codechange: replace some RebuildXXXList/ResortXXXList+InvalidateWindowXXX with InvalidateWindowXXXData.
Diffstat (limited to 'src/train_gui.cpp')
-rw-r--r-- | src/train_gui.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp index 5e40583b7..d95d84dd6 100644 --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -18,6 +18,7 @@ #include "order_func.h" #include "engine_func.h" #include "engine_base.h" +#include "window_func.h" #include "table/sprites.h" #include "table/strings.h" @@ -43,7 +44,7 @@ void CcBuildWagon(bool success, TileIndex tile, uint32 p1, uint32 p2) found = GetLastVehicleInChain(found); /* put the new wagon at the end of the loco. */ DoCommandP(0, _new_vehicle_id | (found->index << 16), 0, NULL, CMD_MOVE_RAIL_VEHICLE); - RebuildVehicleLists(); + InvalidateWindowClassesData(WC_TRAINS_LIST, 0); } } |