summaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_script.h
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-06-29 21:06:16 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-06-29 21:06:16 -0300
commit36e754457fadef8f850db89cd0fa54d50ede5ab0 (patch)
tree6b15e8036e06604670fa61184255069b1c00ac1b /modules/gdscript/gd_script.h
parentff11401441ccdf00dc0c6772e01a835a130ca83c (diff)
Warn instad of crashing when class instance is gone after yield. Closes #5247 , probably closes other yield related crashes
Diffstat (limited to 'modules/gdscript/gd_script.h')
-rw-r--r--modules/gdscript/gd_script.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/gdscript/gd_script.h b/modules/gdscript/gd_script.h
index 166e29ad70..723761c3a9 100644
--- a/modules/gdscript/gd_script.h
+++ b/modules/gdscript/gd_script.h
@@ -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;