summaryrefslogtreecommitdiffstats
path: root/include/godot_cpp/classes/wrapped.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/godot_cpp/classes/wrapped.hpp')
-rw-r--r--include/godot_cpp/classes/wrapped.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/godot_cpp/classes/wrapped.hpp b/include/godot_cpp/classes/wrapped.hpp
index 62ec0d8..94f9f97 100644
--- a/include/godot_cpp/classes/wrapped.hpp
+++ b/include/godot_cpp/classes/wrapped.hpp
@@ -145,9 +145,9 @@ protected:
return (::godot::String(::godot::Wrapped::*)()) & m_class::_to_string; \
} \
\
- template <class T> \
+ template <class T, class B> \
static void register_virtuals() { \
- m_inherits::register_virtuals<T>(); \
+ m_inherits::register_virtuals<T, B>(); \
} \
\
public: \
@@ -159,7 +159,7 @@ public:
m_inherits::initialize_class(); \
if (m_class::_get_bind_methods() != m_inherits::_get_bind_methods()) { \
_bind_methods(); \
- m_inherits::register_virtuals<m_class>(); \
+ m_inherits::register_virtuals<m_class, m_inherits>(); \
} \
initialized = true; \
} \