From 5de2c059d1e793f37ed4e128694c29a15eed313d Mon Sep 17 00:00:00 2001 From: Marc Gilleron Date: Tue, 20 Sep 2022 00:29:39 +0100 Subject: Fix deriving a custom class with virtual methods --- include/godot_cpp/classes/wrapped.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/godot_cpp/classes') 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 \ + template \ static void register_virtuals() { \ - m_inherits::register_virtuals(); \ + m_inherits::register_virtuals(); \ } \ \ 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_inherits::register_virtuals(); \ } \ initialized = true; \ } \ -- cgit v1.2.3