aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2022-08-09 22:52:09 +0200
committerJulien Dessaux2022-08-09 22:52:09 +0200
commite431feb6cb4e0e553a2825a0caaf7a1cdc52c939 (patch)
tree441ab61bca7f88df725a74127f26f7124f72ac5b
parentCosmetics (diff)
downloadnimfunge98-1.1.1.tar.gz
nimfunge98-1.1.1.tar.bz2
nimfunge98-1.1.1.zip
Fixed bug in the handling of end command failure1.1.1
-rw-r--r--src/pointer.nim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pointer.nim b/src/pointer.nim
index 95032dd..bf2c743 100644
--- a/src/pointer.nim
+++ b/src/pointer.nim
@@ -178,7 +178,8 @@ proc Eval(p: var Pointer, f: var Field, c: int): (bool, ref int) =
var v: tuple[x, y: int]
if p.ss[].End(v):
p.Reverse()
- p.sox = v.x; p.soy = v.y
+ else:
+ p.sox = v.x; p.soy = v.y
of int('u'):
if p.ss[].Under():
p.Reverse()