From 761d62c9c8f0cf50e3afc79e8b982c5a192dd07c Mon Sep 17 00:00:00 2001 From: RameshRavone Date: Sun, 21 Apr 2019 06:54:13 +0530 Subject: [PATCH] Fix #272 --- include/core/Godot.hpp | 4 ++-- src/core/GodotGlobal.cpp | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/include/core/Godot.hpp b/include/core/Godot.hpp index 4ed48ed1..6fd33037 100644 --- a/include/core/Godot.hpp +++ b/include/core/Godot.hpp @@ -45,8 +45,8 @@ public: Name *instance = godot::as(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(godot::Object::___get_from_variant(a)); } \ \ diff --git a/src/core/GodotGlobal.cpp b/src/core/GodotGlobal.cpp index ba984a8e..8f178f84 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) {