This commit is contained in:
petrak@ 2022-11-22 09:40:08 -06:00
parent 739032b68e
commit 0d90addd8d

View file

@ -18,7 +18,7 @@ object OpFishermanButItCopies : Action {
if (stack.size < 2)
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()
val fish = stack.get(stack.size - 1 - depth)
stack.add(fish)