summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/core/Godot.hpp4
-rw-r--r--src/core/GodotGlobal.cpp2
2 files changed, 4 insertions, 2 deletions
diff --git a/include/core/Godot.hpp b/include/core/Godot.hpp
index 4ed48ed..6fd3303 100644
--- a/include/core/Godot.hpp
+++ b/include/core/Godot.hpp
@@ -45,8 +45,8 @@ public:
Name *instance = godot::as<Name>(script->new_()); \
return instance; \
} \
- inline static size_t ___get_id() { return typeid(Name).hash_code(); }; \
- inline static size_t ___get_base_id() { return typeid(Base).hash_code(); }; \
+ inline static size_t ___get_id() { return typeid(Name).hash_code(); } \
+ inline static size_t ___get_base_id() { return typeid(Base).hash_code(); } \
inline static const char *___get_base_type_name() { return Base::___get_class_name(); } \
inline static Object *___get_from_variant(godot::Variant a) { return (godot::Object *)godot::as<Name>(godot::Object::___get_from_variant(a)); } \
\
diff --git a/src/core/GodotGlobal.cpp b/src/core/GodotGlobal.cpp
index ba984a8..8f178f8 100644
--- a/src/core/GodotGlobal.cpp
+++ b/src/core/GodotGlobal.cpp
@@ -67,6 +67,7 @@ void Godot::print_error(const String &description, const String &function, const
}
void ___register_types();
+void ___init_method_bindings();
void Godot::gdnative_init(godot_gdnative_init_options *options) {
godot::api = options->api_struct;
@@ -111,6 +112,7 @@ void Godot::nativescript_init(void *handle) {
godot::_RegisterState::language_index = godot::nativescript_1_1_api->godot_nativescript_register_instance_binding_data_functions(binding_funcs);
___register_types();
+ ___init_method_bindings();
}
void Godot::nativescript_terminate(void *handle) {