summaryrefslogtreecommitdiffstats
path: root/core/variant/binder_common.h
diff options
context:
space:
mode:
authorRémi Verschelde <remi@verschelde.fr>2022-03-16 17:11:40 +0100
committerGitHub <noreply@github.com>2022-03-16 17:11:40 +0100
commitc9d764e14a131cb0e797543a1f153cb5adc6fce4 (patch)
tree6dded32a421fdde02eea31f69b4e0cbfae58ef3c /core/variant/binder_common.h
parent9d732aa0cfcfd638c28ac8eb8149d912a5a3a642 (diff)
parent8b547331bec150b682fda94da1568fbcbda689ba (diff)
downloadredot-engine-c9d764e14a131cb0e797543a1f153cb5adc6fce4.tar.gz
Merge pull request #59140 from reduz/physics-server-extension
Diffstat (limited to 'core/variant/binder_common.h')
-rw-r--r--core/variant/binder_common.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/variant/binder_common.h b/core/variant/binder_common.h
index f31191e8a3..22a13b0fab 100644
--- a/core/variant/binder_common.h
+++ b/core/variant/binder_common.h
@@ -100,6 +100,10 @@ struct VariantCaster<const T &> {
_FORCE_INLINE_ static void encode(m_enum p_val, const void *p_ptr) { \
*(int64_t *)p_ptr = (int64_t)p_val; \
} \
+ }; \
+ template <> \
+ struct ZeroInitializer<m_enum> { \
+ static void initialize(m_enum &value) { value = (m_enum)0; } \
};
// Object enum casts must go here