Skip to content

Commit

Permalink
ScriptEditor: fix api null access
Browse files Browse the repository at this point in the history
  • Loading branch information
LeoVgr committed Jan 20, 2025
1 parent e9bbf01 commit 8a933b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hide/comp/ScriptEditor.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8a933b9

Please sign in to comment.