Skip to content

Commit

Permalink
Fix null function reference for IntIterator
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteMasterEric authored and JJ_EMPTY_STRING committed Feb 14, 2025
1 parent d676059 commit 2e59640
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion hscript/Interp.hx
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,8 @@ class Interp {
return (v : Array<Dynamic>).iterator();
if( v.iterator != null ) v = v.iterator();
#else
try v = v.iterator() catch( e : Dynamic ) {};
#if (cpp) if ( v.iterator != null ) #end
try v = v.iterator() catch( e : Dynamic ) {};
#end
if( v.hasNext == null || v.next == null ) error(EInvalidIterator(v));
return v;
Expand Down

0 comments on commit 2e59640

Please sign in to comment.