Permalink
Browse files

Fix a bug in foreach

  • Loading branch information...
LadyCailin committed Feb 11, 2019
1 parent b74c490 commit 9f7caf7bf6d2b19ef47609128737aa8facda20d9
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/laytonsmith/core/functions/DataHandling.java
@@ -703,7 +703,7 @@ public Mixed execs(Target t, Environment env, Script parent, ParseTree... nodes)
arr = new ArrayHandling.range().exec(t, env, new CInt(start, t), new CInt(finish + 1, t));
}
}
if(!(arr instanceof Iterable)) {
if(!(arr instanceof com.laytonsmith.core.natives.interfaces.Iterable)) {
throw new CRECastException("Parameter 1 of " + getName() + " must be an Iterable data structure", t);
}
if(!(iv instanceof IVariable)) {

0 comments on commit 9f7caf7

Please sign in to comment.