commit a7d29f581701d878b408bfda9d2ce53c03f51ff6 parent 8c0156f375d86b970a4917e38838ec5e6b905bbc Author: ssnf <ssnf@ssnf.xyz> Date: Tue, 28 Jan 2025 15:24:11 +0000 fix bug where moving down would sometimes crash the program Diffstat:
M | sim.c | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sim.c b/sim.c @@ -746,7 +746,7 @@ move(int arg) f->dot.p1 = 0; break; case Down: - if (!f->s->n) + if (!fr->a[fr->cur].p1) return; if (fr->cur < fr->n - 1) f->dot.p1 = fr->a[fr->cur + 1].p0;