From 75036c5f05dacb5861734152429e022d113d7953 Mon Sep 17 00:00:00 2001 From: Bastiaan Olij Date: Thu, 26 Jul 2018 21:46:59 +1000 Subject: [PATCH] Fixed up registering tool and updated godot_headers --- godot_headers | 2 +- include/core/Godot.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/godot_headers b/godot_headers index 2d221de2..32aa216b 160000 --- a/godot_headers +++ b/godot_headers @@ -1 +1 @@ -Subproject commit 2d221de20c7ddc297b8bb14f0dbd55c053eb3024 +Subproject commit 32aa216babcc9ae63d971825c67f8d3142114c47 diff --git a/include/core/Godot.hpp b/include/core/Godot.hpp index e336c8e9..9beaf244 100644 --- a/include/core/Godot.hpp +++ b/include/core/Godot.hpp @@ -123,10 +123,10 @@ void register_tool_class() godot_instance_destroy_func destroy = {}; destroy.destroy_func = _godot_class_destroy_func; - _TagDB::register_type(T::___get_type_tag(), T::___get_base_type_tag()); + _TagDB::register_type(typeid(T).hash_code(), typeid(T).hash_code()); godot::nativescript_api->godot_nativescript_register_tool_class(godot::_RegisterState::nativescript_handle, T::___get_type_name(), T::___get_base_type_name(), create, destroy); - godot::nativescript_1_1_api->godot_nativescript_set_type_tag(godot::_RegisterState::nativescript_handle, T::___get_type_name(), T::___get_type_tag()); + godot::nativescript_1_1_api->godot_nativescript_set_type_tag(godot::_RegisterState::nativescript_handle, T::___get_type_name(), (const void *) typeid(T).hash_code()); T::_register_methods(); }