From 36e754457fadef8f850db89cd0fa54d50ede5ab0 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 29 Jun 2016 21:06:16 -0300 Subject: Warn instad of crashing when class instance is gone after yield. Closes #5247 , probably closes other yield related crashes --- modules/gdscript/gd_function.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/gdscript/gd_function.h') diff --git a/modules/gdscript/gd_function.h b/modules/gdscript/gd_function.h index 942db170c..e09c6509d 100644 --- a/modules/gdscript/gd_function.h +++ b/modules/gdscript/gd_function.h @@ -136,6 +136,9 @@ public: struct CallState { + ObjectID instance_id; //by debug only + ObjectID script_id; + GDInstance *instance; Vector stack; int stack_size; -- cgit v1.2.3-70-g09d2