diff options
author | George Marques <george@gmarqu.es> | 2020-02-19 09:15:16 -0300 |
---|---|---|
committer | George Marques <george@gmarqu.es> | 2020-02-19 09:15:16 -0300 |
commit | 4d960efafc64f0f94f68158ca49ed7f3dd9742dc (patch) | |
tree | d331b21a764b512d6479ad98148e08f778cad732 /modules/gdscript/gdscript.h | |
parent | d4906481685f1379bc297ab7fb5b47b03e6771bb (diff) | |
download | redot-engine-4d960efafc64f0f94f68158ca49ed7f3dd9742dc.tar.gz |
GDScript: Remove self static reference and create one on calls
This is needed because of the new changes to Variant. The reference
counter is increased by adding it to a Variant, which means no GDScript
will be freed (or will be double freed if manually freed somewhere).
Diffstat (limited to 'modules/gdscript/gdscript.h')
-rw-r--r-- | modules/gdscript/gdscript.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript.h b/modules/gdscript/gdscript.h index 103de3304e..3e60028281 100644 --- a/modules/gdscript/gdscript.h +++ b/modules/gdscript/gdscript.h @@ -73,7 +73,6 @@ class GDScript : public Script { friend class GDScriptFunctions; friend class GDScriptLanguage; - Variant _static_ref; //used for static call Ref<GDScriptNativeClass> native; Ref<GDScript> base; GDScript *_base; //fast pointer access |