diff options
Diffstat (limited to 'include/core/Ref.hpp')
-rw-r--r-- | include/core/Ref.hpp | 3 |
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; } |