summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-13 21:16:23 +0000
committerrubidium <rubidium@openttd.org>2008-05-13 21:16:23 +0000
commitbb3bd587a6e8f74b7f6844dd1484b22af439b2c9 (patch)
treef351af5756ae46362ff1c44f33b5d79d42ef8d5c /src
parent9fa2e849f287a35f929b77533021483e6f85684a (diff)
downloadopenttd-bb3bd587a6e8f74b7f6844dd1484b22af439b2c9.tar.xz
(svn r13076) -Fix [FS#2012]: the wrong autoreplace window would be shown if the vehicle isn't a train.
Diffstat (limited to 'src')
-rw-r--r--src/autoreplace_gui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoreplace_gui.cpp b/src/autoreplace_gui.cpp
index 2d1365b26..f9d827d27 100644
--- a/src/autoreplace_gui.cpp
+++ b/src/autoreplace_gui.cpp
@@ -249,7 +249,7 @@ class ReplaceVehicleWindow : public Window {
}
public:
- ReplaceVehicleWindow(const WindowDesc *desc, VehicleType vehicletype, GroupID id_g) : Window(desc, window_number)
+ ReplaceVehicleWindow(const WindowDesc *desc, VehicleType vehicletype, GroupID id_g) : Window(desc, vehicletype)
{
this->wagon_btnstate = true; // start with locomotives (all other vehicles will not read this bool)
new (&this->list[0]) EngineList();