From c2be2dfbde3d0393d5d1f0426ee51d363c571b21 Mon Sep 17 00:00:00 2001 From: Pylgos <43234674+Pylgos@users.noreply.github.com> Date: Sat, 6 Apr 2024 01:27:16 +0900 Subject: [PATCH] Fix Resource::get_rid override not working in GDExtension --- core/io/resource.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/core/io/resource.cpp b/core/io/resource.cpp index dc974a545a78..74f18ceee197 100644 --- a/core/io/resource.cpp +++ b/core/io/resource.cpp @@ -424,8 +424,7 @@ RID Resource::get_rid() const { } } if (_get_extension() && _get_extension()->get_rid) { - RID ret; - ret.from_uint64(_get_extension()->get_rid(_get_extension_instance())); + RID ret = RID::from_uint64(_get_extension()->get_rid(_get_extension_instance())); if (ret.is_valid()) { return ret; }