From cc0a7b24e760512c4a17e54371c3308cd082c266 Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Wed, 1 Jun 2016 20:44:34 -0300 Subject: missed ifdef that broke android build --- modules/gdscript/gd_compiler.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/gdscript/gd_compiler.cpp b/modules/gdscript/gd_compiler.cpp index 7a2e9c9638..d51f1a4ddc 100644 --- a/modules/gdscript/gd_compiler.cpp +++ b/modules/gdscript/gd_compiler.cpp @@ -1779,6 +1779,7 @@ Error GDCompiler::_parse_class(GDScript *p_script, GDScript *p_owner, const GDPa ScriptInstance *si = E->get()->get_script_instance(); if (si->is_placeholder()) { +#ifdef TOOLS_ENABLED PlaceHolderScriptInstance *psi = static_cast(si); if (p_script->is_tool()) { @@ -1807,8 +1808,9 @@ Error GDCompiler::_parse_class(GDScript *p_script, GDScript *p_owner, const GDPa //well, tough luck, not goinna do anything here } } +#endif } else { - print_line("RELOAD MEMBERS"); + GDInstance *gi = static_cast(si); gi->reload_members(); } -- cgit v1.2.3