Skip to content

Commit

Permalink
Merge pull request godotengine#90273 from Pylgos/fix-gdextension-get-rid
Browse files Browse the repository at this point in the history
Fix `Resource::get_rid override` not working in GDExtension
  • Loading branch information
akien-mga committed Apr 6, 2024
2 parents c1b2cfd + c2be2df commit dd9aacd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions core/io/resource.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dd9aacd

Please sign in to comment.