diff options
| author | Marc Gilleron <marc.gilleron@gmail.com> | 2022-09-20 00:29:39 +0100 |
|---|---|---|
| committer | Marc Gilleron <marc.gilleron@gmail.com> | 2022-09-21 19:31:30 +0100 |
| commit | 5de2c059d1e793f37ed4e128694c29a15eed313d (patch) | |
| tree | de1928f3d49c9f34c20d72c5de1fae453e9e6556 /include/godot_cpp/classes | |
| parent | a330342e4fd9f19edd2733afdc0f7c75179bf9c8 (diff) | |
| download | redot-cpp-5de2c059d1e793f37ed4e128694c29a15eed313d.tar.gz | |
Fix deriving a custom class with virtual methods
Diffstat (limited to 'include/godot_cpp/classes')
| -rw-r--r-- | include/godot_cpp/classes/wrapped.hpp | 6 |
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; \ } \ |
