diff options
| author | Ruslan Mustakov | 2017-08-19 19:41:11 +0700 |
|---|---|---|
| committer | Ruslan Mustakov | 2017-09-14 19:40:36 +0700 |
| commit | f08bc0df7c16a6d12292628ec8cc2e015047c450 (patch) | |
| tree | 73b9bdaf5441798340bcbddcd96edc2430a9ccd0 /core/reference.h | |
| parent | 9ac940677c9febc5f1c52782a717df61b0224344 (diff) | |
| download | godot-f08bc0df7c16a6d12292628ec8cc2e015047c450.tar.gz godot-f08bc0df7c16a6d12292628ec8cc2e015047c450.tar.zst godot-f08bc0df7c16a6d12292628ec8cc2e015047c450.zip | |
Diffstat (limited to 'core/reference.h')
| -rw-r--r-- | core/reference.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/reference.h b/core/reference.h index ca3ae6041..bafc16427 100644 --- a/core/reference.h +++ b/core/reference.h @@ -51,7 +51,7 @@ protected: public: _FORCE_INLINE_ bool is_referenced() const { return refcount_init.get() < 1; } bool init_ref(); - void reference(); + bool reference(); // returns false if refcount is at zero and didn't get increased bool unreference(); int reference_get_count() const; |
