summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-10-12 22:34:21 +0200
committerGitHub <noreply@github.com>2021-10-12 22:34:21 +0200
commitb48c6418fee1363e6d058f01d7245e33c8de6891 (patch)
tree6399e96dbf2a79f42db8fcd0d44ac3fd37e29b05 /core
parentd9667d92623f23292e18679943ea95bdef4f6a17 (diff)
parentcca26cc83f39d5d8a5763e06b0adb5eefa75da39 (diff)
Merge pull request #52293 from neikeq/class-db-api-type-bug
Fix ClassDB API type mismatch bug between --editor and player
Diffstat (limited to 'core')
-rw-r--r--core/object/class_db.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/object/class_db.h b/core/object/class_db.h
index aceea5b651..d9eec4e4a8 100644
--- a/core/object/class_db.h
+++ b/core/object/class_db.h
@@ -164,6 +164,7 @@ public:
t->creation_func = &creator<T>;
t->exposed = true;
t->class_ptr = T::get_class_ptr_static();
+ t->api = current_api;
T::register_custom_data_to_otdb();
}
@@ -175,6 +176,7 @@ public:
ERR_FAIL_COND(!t);
t->exposed = true;
t->class_ptr = T::get_class_ptr_static();
+ t->api = current_api;
//nothing
}
@@ -195,6 +197,7 @@ public:
t->creation_func = &_create_ptr_func<T>;
t->exposed = true;
t->class_ptr = T::get_class_ptr_static();
+ t->api = current_api;
T::register_custom_data_to_otdb();
}