Warn instad of crashing when class instance is gone after yield. Closes #5247 , probably closes other yield related crashes

This commit is contained in:
Juan Linietsky 2016-06-29 21:06:16 -03:00
parent ff11401441
commit 36e754457f
3 changed files with 30 additions and 0 deletions

View file

@ -136,6 +136,9 @@ public:
struct CallState {
ObjectID instance_id; //by debug only
ObjectID script_id;
GDInstance *instance;
Vector<uint8_t> stack;
int stack_size;