summaryrefslogtreecommitdiffstats
path: root/include/core/Ref.hpp
diff options
context:
space:
mode:
authorThomas Herzog <thomas.herzog@mail.com>2017-10-24 19:28:06 +0200
committerGitHub <noreply@github.com>2017-10-24 19:28:06 +0200
commite72f4beec1b091edf6f16a0fe27d5ed13ca450c2 (patch)
treeb6fdcdb52158c0343f161f15887f6319a53a4c1c /include/core/Ref.hpp
parentf24ecfc74d2f60c597cef6d98e23accfb358a90e (diff)
parent6452ba6e884885b98884aad3bc38ba2560cddb19 (diff)
downloadredot-cpp-e72f4beec1b091edf6f16a0fe27d5ed13ca450c2.tar.gz
Merge pull request #47 from BastiaanOlij/add_api_struct
Implemented using api struct
Diffstat (limited to 'include/core/Ref.hpp')
-rw-r--r--include/core/Ref.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/core/Ref.hpp b/include/core/Ref.hpp
index 30d0816..7e35641 100644
--- a/include/core/Ref.hpp
+++ b/include/core/Ref.hpp
@@ -2,6 +2,7 @@
#define REF_H
#include "Variant.hpp"
+#include "GodotGlobal.hpp"
namespace godot {
@@ -156,7 +157,7 @@ public:
void unref()
{
if (reference && reference->unreference()) {
- godot_object_destroy((godot_object *) reference);
+ godot::api->godot_object_destroy((godot_object *) reference);
}
reference = nullptr;
}