src/autoreplace_gui.cpp
changeset 10532 d95aa7f84bc8
parent 10525 da5bc725cda4
child 10595 7957c71b0dfe
--- 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();