From 6572d5128856b2ec55a2c417c92e584899f4906f Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Thu, 1 May 2014 11:34:10 -0300 Subject: -Fixes to OpenSSL compilation (more) -Fix bug in GDScript, now static functions can call static functions. --- modules/gdscript/gd_script.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'modules/gdscript/gd_script.cpp') diff --git a/modules/gdscript/gd_script.cpp b/modules/gdscript/gd_script.cpp index 75bb47ceab..299a7d3e54 100644 --- a/modules/gdscript/gd_script.cpp +++ b/modules/gdscript/gd_script.cpp @@ -61,6 +61,10 @@ Variant *GDFunction::_get_variant(int p_address,GDInstance *p_instance,GDScript } return &self; } break; + case ADDR_TYPE_CLASS: { + + return &p_script->_static_ref; + } break; case ADDR_TYPE_MEMBER: { //member indexing is O(1) if (!p_instance) { @@ -1678,6 +1682,7 @@ Ref GDScript::get_base() const { GDScript::GDScript() { + _static_ref=this; valid=false; subclass_count=0; initializer=NULL; -- cgit v1.2.3