diff --git a/ntcore/src/main/native/include/networktables/ProtobufTopic.h b/ntcore/src/main/native/include/networktables/ProtobufTopic.h index 5fe615b26d..eba6bf0caa 100644 --- a/ntcore/src/main/native/include/networktables/ProtobufTopic.h +++ b/ntcore/src/main/native/include/networktables/ProtobufTopic.h @@ -60,12 +60,12 @@ class ProtobufSubscriber : public Subscriber { ProtobufSubscriber(ProtobufSubscriber&& rhs) : Subscriber{std::move(rhs)}, m_msg{std::move(rhs.m_msg)}, - m_defaultValue{std::move(rhs.defaultValue)} {} + m_defaultValue{std::move(rhs.m_defaultValue)} {} ProtobufSubscriber& operator=(ProtobufSubscriber&& rhs) { Subscriber::operator=(std::move(rhs)); m_msg = std::move(rhs.m_msg); - m_defaultValue = std::move(rhs.defaultValue); + m_defaultValue = std::move(rhs.m_defaultValue); return *this; }