fix #321
This commit is contained in:
parent
739032b68e
commit
0d90addd8d
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ object OpFishermanButItCopies : Action {
|
||||||
if (stack.size < 2)
|
if (stack.size < 2)
|
||||||
throw MishapNotEnoughArgs(2, stack.size)
|
throw MishapNotEnoughArgs(2, stack.size)
|
||||||
|
|
||||||
val depth = stack.getPositiveIntUnderInclusive(stack.lastIndex, stack.size - 1)
|
val depth = stack.getPositiveIntUnderInclusive(stack.lastIndex, stack.size - 2)
|
||||||
stack.removeLast()
|
stack.removeLast()
|
||||||
val fish = stack.get(stack.size - 1 - depth)
|
val fish = stack.get(stack.size - 1 - depth)
|
||||||
stack.add(fish)
|
stack.add(fish)
|
||||||
|
|
Loading…
Reference in a new issue