diff --git a/hecl/include/hecl/CVar.hpp b/hecl/include/hecl/CVar.hpp index 384fe2164..29095b4fd 100644 --- a/hecl/include/hecl/CVar.hpp +++ b/hecl/include/hecl/CVar.hpp @@ -117,7 +117,7 @@ public: */ void lock(); - void addListener(ListenerFunc func) { m_listeners.push_back(func); } + void addListener(ListenerFunc func) { m_listeners.push_back(std::move(func)); } private: void dispatch();