diff options
author | Juan Linietsky <reduzio@gmail.com> | 2016-06-01 20:44:34 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2016-06-01 20:44:34 -0300 |
commit | cc0a7b24e760512c4a17e54371c3308cd082c266 (patch) | |
tree | e1a0e9bbba4341a35547865b7eb9ed494b768df1 /modules/gdscript/gd_compiler.cpp | |
parent | 9e745b920fec25f1088ae0377a8d87a87136a5f7 (diff) |
missed ifdef that broke android build
Diffstat (limited to 'modules/gdscript/gd_compiler.cpp')
-rw-r--r-- | modules/gdscript/gd_compiler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<PlaceHolderScriptInstance*>(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<GDInstance*>(si); gi->reload_members(); } |