summaryrefslogtreecommitdiff
path: root/core/rid.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/rid.h')
-rw-r--r--core/rid.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/rid.h b/core/rid.h
index a2f73423a3..ac07eacd08 100644
--- a/core/rid.h
+++ b/core/rid.h
@@ -37,7 +37,7 @@ class RID_AllocBase;
class RID {
friend class RID_AllocBase;
- uint64_t _id;
+ uint64_t _id = 0;
public:
_FORCE_INLINE_ bool operator==(const RID &p_rid) const {
@@ -65,9 +65,7 @@ public:
_FORCE_INLINE_ uint64_t get_id() const { return _id; }
- _FORCE_INLINE_ RID() {
- _id = 0;
- }
+ _FORCE_INLINE_ RID() {}
};
#endif // RID_H