From e404aa7c2e25e4712351485d70f3044b4ba1b49d Mon Sep 17 00:00:00 2001 From: "yrsegal@gmail.com" Date: Sun, 24 Jul 2022 19:54:14 -0400 Subject: [PATCH] fix #174 --- .../petrak/hexcasting/api/spell/casting/ContinuationFrame.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Common/src/main/java/at/petrak/hexcasting/api/spell/casting/ContinuationFrame.kt b/Common/src/main/java/at/petrak/hexcasting/api/spell/casting/ContinuationFrame.kt index 2eb1632a..d93ece07 100644 --- a/Common/src/main/java/at/petrak/hexcasting/api/spell/casting/ContinuationFrame.kt +++ b/Common/src/main/java/at/petrak/hexcasting/api/spell/casting/ContinuationFrame.kt @@ -146,7 +146,9 @@ sealed interface ContinuationFrame { // If we still have data to process... val (stackTop, newCont) = if (data.nonEmpty) { - // Push the next datum to the top of the stack, + // Increment the evaluation depth, + harness.ctx.incDepth() + // push the next datum to the top of the stack, data.car to continuation // put the next Thoth object back on the stack for the next Thoth cycle, .pushFrame(ForEach(data.cdr, code, stack, acc))