mirror of
https://github.com/tiennm99/godot.git
synced 2026-06-29 15:30:43 +00:00
9d2c012f23
Storing script references to pointer only in result.script_type could
lead to losing the last reference, causing further conversions from
Script* to Ref<Script> to fail.
Now result.script_type_ref is always set first, and then cleared in the
specific case of the script being the owner, to avoid cyclic reference
issues.
(cherry picked from commit 87d73faa66)