diff --git a/server/src/train/train.cpp b/server/src/train/train.cpp index 93a13e88..f68c6120 100644 --- a/server/src/train/train.cpp +++ b/server/src/train/train.cpp @@ -50,7 +50,7 @@ static inline bool isPowered(const RailVehicle& vehicle) Train::Train(World& world, std::string_view _id) : IdObject(world, _id), m_speedTimer{EventLoop::ioContext}, - name{this, "name", "", PropertyFlags::ReadWrite | PropertyFlags::Store | PropertyFlags::ScriptReadOnly}, + name{this, "name", id, PropertyFlags::ReadWrite | PropertyFlags::Store | PropertyFlags::ScriptReadOnly}, lob{*this, "lob", 0, LengthUnit::MilliMeter, PropertyFlags::ReadWrite | PropertyFlags::Store}, overrideLength{this, "override_length", false, PropertyFlags::ReadWrite | PropertyFlags::Store, [this](bool value)