diff options
Diffstat (limited to 'core')
-rw-r--r-- | core/reference.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/reference.h b/core/reference.h index 544da41044..65f31f78f3 100644 --- a/core/reference.h +++ b/core/reference.h @@ -294,6 +294,9 @@ public: reference=NULL; } + void instance() { + ref( memnew( T )); + } Ref() { |