diff options
author | rubidium <rubidium@openttd.org> | 2008-05-06 21:28:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-06 21:28:30 +0000 |
commit | 8796331d83e09dda2ac4642f9215845cc2dd321c (patch) | |
tree | 248a2b8909d0045aad2724ae25b5f9064e597dd1 /src/train_cmd.cpp | |
parent | 7b6ce158fe49d95f4e732ceb8372e2b06fabc559 (diff) | |
download | openttd-8796331d83e09dda2ac4642f9215845cc2dd321c.tar.xz |
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
Diffstat (limited to 'src/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 41844cae3..0ac6f657c 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -1347,8 +1347,7 @@ CommandCost CmdSellRailWagon(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) if (flags & DC_EXEC) { if (v == first && IsFrontEngine(first)) { - w = FindWindowById(WC_VEHICLE_VIEW, first->index); - if (w != NULL) DeleteWindow(w); + delete FindWindowById(WC_VEHICLE_VIEW, first->index); } InvalidateWindow(WC_VEHICLE_DEPOT, first->tile); RebuildVehicleLists(); |