diff options
author | rubidium <rubidium@openttd.org> | 2008-05-17 13:01:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-17 13:01:30 +0000 |
commit | 87015f5b6395f15a624f67e25dce10fe52a12c81 (patch) | |
tree | 46351975e7a6b7a08ca8eedc476a4109e9a1b776 /src/train_cmd.cpp | |
parent | 8b5421290027ab67cba25225111e3561ddd7af07 (diff) | |
download | openttd-87015f5b6395f15a624f67e25dce10fe52a12c81.tar.xz |
(svn r13140) -Codechange: move the gui-list-sorting out of window_gui.h so window_gui.h only needs to be included in *_gui.cpp.
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index b377bfb5c..146c33bc1 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -1350,7 +1350,7 @@ CommandCost CmdSellRailWagon(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) if (flags & DC_EXEC) { if (v == first && IsFrontEngine(first)) { - delete FindWindowById(WC_VEHICLE_VIEW, first->index); + DeleteWindowById(WC_VEHICLE_VIEW, first->index); } InvalidateWindow(WC_VEHICLE_DEPOT, first->tile); RebuildVehicleLists(); |