diff options
author | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2018-11-25 12:38:12 +0100 |
---|---|---|
committer | Pedro J. Estébanez <pedrojrulez@gmail.com> | 2018-11-25 13:16:45 +0100 |
commit | 06b6cea62ec8c413389c7d9543e2c0eb587d527a (patch) | |
tree | 305cdc5bef33f57b1e2d5c6ca1880d6f0f97c675 /modules/gdscript/gdscript_function.h | |
parent | b499537e684449f9181f2a2cfa59305c1e3bd17a (diff) |
Fix crash on signal/resume to dangling target
Diffstat (limited to 'modules/gdscript/gdscript_function.h')
-rw-r--r-- | modules/gdscript/gdscript_function.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/gdscript/gdscript_function.h b/modules/gdscript/gdscript_function.h index bfb6d673f1..5509edf24a 100644 --- a/modules/gdscript/gdscript_function.h +++ b/modules/gdscript/gdscript_function.h @@ -272,15 +272,13 @@ private: public: struct CallState { - ObjectID instance_id; //by debug only - ObjectID script_id; - + ObjectID instance_id; GDScriptInstance *instance; Vector<uint8_t> stack; int stack_size; Variant self; uint32_t alloca_size; - GDScript *_class; + Ref<GDScript> script; int ip; int line; int defarg; |