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/vehicle_gui.cpp | |
parent | 7b6ce158fe49d95f4e732ceb8372e2b06fabc559 (diff) | |
download | openttd-8796331d83e09dda2ac4642f9215845cc2dd321c.tar.xz |
(svn r12975) -Codechange: replace DeleteWindow(w) with delete w.
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index a99c8cf16..35456cbc4 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -398,9 +398,9 @@ static void VehicleRefitWndProc(Window *w, WindowEvent *e) case VEH_SHIP: command = CMD_REFIT_SHIP | CMD_MSG(STR_9841_CAN_T_REFIT_SHIP); break; case VEH_AIRCRAFT: command = CMD_REFIT_AIRCRAFT | CMD_MSG(STR_A042_CAN_T_REFIT_AIRCRAFT); break; } - if (DoCommandP(v->tile, v->index, WP(w, refit_d).cargo->cargo | WP(w, refit_d).cargo->subtype << 8, NULL, command)) DeleteWindow(w); + if (DoCommandP(v->tile, v->index, WP(w, refit_d).cargo->cargo | WP(w, refit_d).cargo->subtype << 8, NULL, command)) delete w; } else { - if (DoCommandP(v->tile, v->index, WP(w, refit_d).cargo->cargo | WP(w, refit_d).cargo->subtype << 8 | WP(w, refit_d).order << 16, NULL, CMD_ORDER_REFIT)) DeleteWindow(w); + if (DoCommandP(v->tile, v->index, WP(w, refit_d).cargo->cargo | WP(w, refit_d).cargo->subtype << 8 | WP(w, refit_d).order << 16, NULL, CMD_ORDER_REFIT)) delete w; } } break; |