summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-05-03 14:36:32 +0200
committerGitHub <noreply@github.com>2018-05-03 14:36:32 +0200
commitb774156729b4b2f8a1fea6faf6e232fe809ea6f6 (patch)
treec6175bb0af57e0da218e58b594d6b27cb3f2b61a /core
parent12c60eba19fbb6971ea0ffa2cf8312ad42e84d65 (diff)
parent3a86dffc5e6ce180c350ef9a9ddd019b24584d88 (diff)
Merge pull request #18514 from neikeq/api-hash-fixes
API hash fixes
Diffstat (limited to 'core')
-rw-r--r--core/class_db.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/class_db.cpp b/core/class_db.cpp
index 08c1ade679..59b100e282 100644
--- a/core/class_db.cpp
+++ b/core/class_db.cpp
@@ -357,7 +357,7 @@ uint64_t ClassDB::get_api_hash(APIType p_api) {
ClassInfo *t = classes.getptr(E->get());
ERR_FAIL_COND_V(!t, 0);
- if (t->api != p_api)
+ if (t->api != p_api || !t->exposed)
continue;
hash = hash_djb2_one_64(t->name.hash(), hash);
hash = hash_djb2_one_64(t->inherits.hash(), hash);