diff options
Diffstat (limited to 'src/core/RID.cpp')
| -rw-r--r-- | src/core/RID.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/core/RID.cpp b/src/core/RID.cpp index 2343475..1431a8a 100644 --- a/src/core/RID.cpp +++ b/src/core/RID.cpp @@ -7,17 +7,12 @@ namespace godot { RID::RID(Object *p) { - godot_rid_new(&_godot_rid, p); + godot_rid_new_with_resource(&_godot_rid, (const godot_object *) p); } int32_t RID::get_rid() const { - return godot_rid_get_rid(&_godot_rid); -} - -RID::~RID() -{ - godot_rid_destroy(&_godot_rid); + return godot_rid_get_id(&_godot_rid); } |
