aboutsummaryrefslogtreecommitdiffstatsci
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Instantiator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Instantiator.cs b/src/Instantiator.cs
index 47fcb177..c90047dc 100644
--- a/src/Instantiator.cs
+++ b/src/Instantiator.cs
@@ -406,7 +406,7 @@ namespace Crow
}
} else if (bindingExp [0] == "..") { //search starting at current node
int levelUp = bindingExp.Length - 1;
- if (levelUp > ptr)
+ if (levelUp > ptr + 1)
throw new Exception ("Binding error: try to bind outside IML source");
ptr -= levelUp;
}