1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-07 12:30:27 +00:00

GDExtension: Use ObjectID when creating custom callable

This commit is contained in:
David Snopek
2023-10-22 17:20:49 -05:00
parent f71f4b80e3
commit b0a33cac7c
2 changed files with 3 additions and 5 deletions

View File

@@ -159,9 +159,7 @@ public:
userdata = p_info->callable_userdata;
token = p_info->token;
if (p_info->object != nullptr) {
object = ((Object *)p_info->object)->get_instance_id();
}
object = p_info->object_id;
call_func = p_info->call_func;
is_valid_func = p_info->is_valid_func;