aboutsummaryrefslogtreecommitdiff
path: root/core/reference.h
diff options
context:
space:
mode:
authorJuan Linietsky2015-06-16 16:39:20 -0300
committerJuan Linietsky2015-06-16 16:39:20 -0300
commit37af8b413674936518a2ebe180f9e7bfcd5795bb (patch)
treeda6993ed2cd087d93392c2c5542a70a078716fd2 /core/reference.h
parent669f5c994b5fe9fb870eae5db86b231202361617 (diff)
parentf2a29aadc620c2296e08ca20e926b54191c37540 (diff)
downloadgodot-37af8b413674936518a2ebe180f9e7bfcd5795bb.tar.gz
godot-37af8b413674936518a2ebe180f9e7bfcd5795bb.tar.zst
godot-37af8b413674936518a2ebe180f9e7bfcd5795bb.zip
Diffstat (limited to 'core/reference.h')
-rw-r--r--core/reference.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/core/reference.h b/core/reference.h
index 544da4104..65f31f78f 100644
--- a/core/reference.h
+++ b/core/reference.h
@@ -294,6 +294,9 @@ public:
reference=NULL;
}
+ void instance() {
+ ref( memnew( T ));
+ }
Ref() {