summaryrefslogtreecommitdiff
path: root/editor/editor_run_native.h
diff options
context:
space:
mode:
authorPouleyKetchoupp <pouleyketchoup@gmail.com>2020-12-04 10:58:59 -0700
committerPouleyKetchoupp <pouleyketchoup@gmail.com>2020-12-06 08:20:33 -0700
commit87d73faa668b8b76333b1728a3f91f1e0438f2fd (patch)
tree21693fd162a091d1f9eae9e8aba7f93869b1f69e /editor/editor_run_native.h
parentd834789f475d431b10dcaef8804cd75dcd8b47dd (diff)
Fix base script not initialized properly in some cases
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.
Diffstat (limited to 'editor/editor_run_native.h')
0 files changed, 0 insertions, 0 deletions