diff options
author | rubidium <rubidium@openttd.org> | 2008-05-08 11:50:34 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-05-08 11:50:34 +0000 |
commit | 23fc96c3e8c252edbf2e7c22cefab633a0474410 (patch) | |
tree | 23ad171b2093a5c5980b9d912bf60056102af9fa /src/order_gui.cpp | |
parent | 2eef026fe35b9236606062f7d8a59d5661a5c748 (diff) | |
download | openttd-23fc96c3e8c252edbf2e7c22cefab633a0474410.tar.xz |
(svn r13005) -Codechange: prepare AllocateWindowDescFront for subclassing of Window.
Diffstat (limited to 'src/order_gui.cpp')
-rw-r--r-- | src/order_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/order_gui.cpp b/src/order_gui.cpp index 125118fcb..126600d27 100644 --- a/src/order_gui.cpp +++ b/src/order_gui.cpp @@ -1185,9 +1185,9 @@ void ShowOrdersWindow(const Vehicle *v) DeleteWindowById(WC_VEHICLE_DETAILS, veh); if (v->owner != _local_player) { - w = AllocateWindowDescFront(&_other_orders_desc, veh); + w = AllocateWindowDescFront<Window>(&_other_orders_desc, veh); } else { - w = AllocateWindowDescFront((v->type == VEH_TRAIN || v->type == VEH_ROAD) ? &_orders_train_desc : &_orders_desc, veh); + w = AllocateWindowDescFront<Window>((v->type == VEH_TRAIN || v->type == VEH_ROAD) ? &_orders_train_desc : &_orders_desc, veh); } if (w != NULL) { |