diff --git a/simgear/props/props.hxx b/simgear/props/props.hxx index c78d2102..8ec61000 100644 --- a/simgear/props/props.hxx +++ b/simgear/props/props.hxx @@ -2056,6 +2056,13 @@ public: { _property->addChangeListener(this,initial); } + + SGPropertyChangeCallback(const SGPropertyChangeCallback& other) : + _obj(other._obj), _callback(other._callback), _property(other._property) + { + _property->addChangeListener(this,false); + } + virtual ~SGPropertyChangeCallback() { _property->removeChangeListener(this);