diff --git a/hide/comp/ScriptEditor.hx b/hide/comp/ScriptEditor.hx index c61ba914c..9f84a0ab0 100644 --- a/hide/comp/ScriptEditor.hx +++ b/hide/comp/ScriptEditor.hx @@ -163,7 +163,7 @@ class ScriptChecker { } function initTypes() { - if( api != null && apiHash == api.apiHash ) + if( api == null || apiHash == api.apiHash ) return false; apiHash = api.apiHash; checker = new hscript.Checker();