Merge pull request #340 from Cypher121/patch-1
Fix Hermes reading from bottom of the stack
This commit is contained in:
commit
4a3ffd924f
|
@ -19,7 +19,7 @@ object OpEval : Action {
|
|||
ravenmind: Iota?,
|
||||
ctx: CastingContext
|
||||
): OperationResult {
|
||||
val datum = stack.getOrElse(0) { throw MishapNotEnoughArgs(1, 0) }
|
||||
val datum = stack.removeLastOrNull() ?: throw MishapNotEnoughArgs(1, 0)
|
||||
val instrs = evaluatable(datum, 0)
|
||||
|
||||
instrs.ifRight {
|
||||
|
|
Loading…
Reference in a new issue