1
0
mirror of https://github.com/OpenTTD/OpenTTD.git synced 2025-08-29 01:19:11 +00:00

(svn r13076) -Fix [FS#2012]: the wrong autoreplace window would be shown if the vehicle isn't a train.

This commit is contained in:
rubidium
2008-05-13 21:16:23 +00:00
parent 9fa2e849f2
commit bb3bd587a6

View File

@@ -249,7 +249,7 @@ class ReplaceVehicleWindow : public Window {
} }
public: 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) this->wagon_btnstate = true; // start with locomotives (all other vehicles will not read this bool)
new (&this->list[0]) EngineList(); new (&this->list[0]) EngineList();