diff --git a/src/FDM/YASim/Hitch.cpp b/src/FDM/YASim/Hitch.cpp index de39c4382..df8b1f7cc 100755 --- a/src/FDM/YASim/Hitch.cpp +++ b/src/FDM/YASim/Hitch.cpp @@ -224,12 +224,12 @@ void Hitch::setForceIsCalculatedByOther(bool b) _forceIsCalculatedByMaster=b; } -const char *Hitch::getConnectedPropertyNode() const +std::string Hitch::getConnectedPropertyNode() const { if (_towEndNode) return _towEndNode->getDisplayName(); else - return 0; + return std::string(""); } void Hitch::setConnectedPropertyNode(const char *nodename) diff --git a/src/FDM/YASim/Hitch.hpp b/src/FDM/YASim/Hitch.hpp index d97fa9ae9..45e9e7b84 100755 --- a/src/FDM/YASim/Hitch.hpp +++ b/src/FDM/YASim/Hitch.hpp @@ -1,6 +1,8 @@ #ifndef _HITCH_HPP #define _HITCH_HPP +#include + #include
namespace yasim { @@ -48,7 +50,7 @@ public: void integrate (float dt); - const char *getConnectedPropertyNode() const; + std::string getConnectedPropertyNode() const; void setConnectedPropertyNode(const char *nodename); private: