aboutsummaryrefslogtreecommitdiff
path: root/core/rid.cpp
diff options
context:
space:
mode:
authorJuan Linietsky2016-10-03 16:33:42 -0300
committerJuan Linietsky2016-10-03 21:35:16 +0200
commit22d83bc9f655d5ae7a1b49709c4c1b663725daf5 (patch)
treea817195c08d4713a70ca014a3f63f5937934fe36 /core/rid.cpp
parent78d97b060a6873a454e710380cb9ef1bde5e4c65 (diff)
downloadgodot-22d83bc9f655d5ae7a1b49709c4c1b663725daf5.tar.gz
godot-22d83bc9f655d5ae7a1b49709c4c1b663725daf5.tar.zst
godot-22d83bc9f655d5ae7a1b49709c4c1b663725daf5.zip
Diffstat (limited to 'core/rid.cpp')
-rw-r--r--core/rid.cpp12
1 files changed, 5 insertions, 7 deletions
diff --git a/core/rid.cpp b/core/rid.cpp
index 219c2f0e6..1b7a58313 100644
--- a/core/rid.cpp
+++ b/core/rid.cpp
@@ -28,18 +28,16 @@
/*************************************************************************/
#include "rid.h"
-static SafeRefCount current_id;
-void RID_OwnerBase::init_rid() {
+RID_Data::~RID_Data() {
- current_id.init(1);
}
-ID RID_OwnerBase::new_ID() {
+SafeRefCount RID_OwnerBase::refcount;
- ID id = current_id.refval();
- return id;
-}
+void RID_OwnerBase::init_rid() {
+ refcount.init();
+}