(svn r13076) -Fix [FS#2012]: the wrong autoreplace window would be shown if the vehicle isn't a train.
authorrubidium
Tue, 13 May 2008 21:16:23 +0000
changeset 10532 d95aa7f84bc8
parent 10531 72bdb97b2bc6
child 10533 24b0b6e1e8e9
(svn r13076) -Fix [FS#2012]: the wrong autoreplace window would be shown if the vehicle isn't a train.
src/autoreplace_gui.cpp
--- a/src/autoreplace_gui.cpp	Tue May 13 21:11:38 2008 +0000
+++ b/src/autoreplace_gui.cpp	Tue May 13 21:16:23 2008 +0000
@@ -249,7 +249,7 @@
 	}
 
 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();