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

@ -202,6 +202,8 @@ friend class GDCompiler;
public:
_FORCE_INLINE_ Object* get_owner() { return owner; }
virtual bool set(const StringName& p_name, const Variant& p_value);
virtual bool get(const StringName& p_name, Variant &r_ret) const;
virtual void get_property_list(List<PropertyInfo> *p_properties) const;