diff options
Diffstat (limited to 'core/object/object.h')
-rw-r--r-- | core/object/object.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/object/object.h b/core/object/object.h index b695ce9bc3..ea3ee6b9cc 100644 --- a/core/object/object.h +++ b/core/object/object.h @@ -37,6 +37,7 @@ #include "core/templates/hash_map.h" #include "core/templates/list.h" #include "core/templates/map.h" +#include "core/templates/safe_refcount.h" #include "core/templates/set.h" #include "core/templates/vmap.h" #include "core/variant/callable_bind.h" @@ -485,7 +486,7 @@ private: friend class Reference; bool type_is_reference = false; - uint32_t instance_binding_count = 0; + SafeNumeric<uint32_t> instance_binding_count; void *_script_instance_bindings[MAX_SCRIPT_INSTANCE_BINDINGS]; Object(bool p_reference); |