missed ifdef that broke android build

This commit is contained in:
Juan Linietsky 2016-06-01 20:44:34 -03:00
parent 9e745b920f
commit cc0a7b24e7
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}