diff options
Diffstat (limited to 'src/core/RID.cpp')
-rw-r--r-- | src/core/RID.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/RID.cpp b/src/core/RID.cpp index 12b4a2e..05f2931 100644 --- a/src/core/RID.cpp +++ b/src/core/RID.cpp @@ -2,17 +2,19 @@ #include <gdnative/rid.h> +#include "GodotGlobal.hpp" + namespace godot { RID::RID(Object *p) { - godot_rid_new_with_resource(&_godot_rid, (const godot_object *) p); + godot::api->godot_rid_new_with_resource(&_godot_rid, (const godot_object *) p); } int32_t RID::get_rid() const { - return godot_rid_get_id(&_godot_rid); + return godot::api->godot_rid_get_id(&_godot_rid); } |