From 88e0e5e3cd696e0979459eeb5ce2eff9bfef2886 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Thu, 16 Oct 2025 23:20:26 +0200 Subject: [PATCH] fixed a possible bug in adj_minefield_cells_full --- cell.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cell.cpp b/cell.cpp index ac8275d7..db491c78 100644 --- a/cell.cpp +++ b/cell.cpp @@ -1623,7 +1623,7 @@ EX vector adj_minefield_cells_full(cell *c) { forCellIdCM(c2, i, c) res.emplace_back(adj_data{c2, c->c.mirror(i), currentmap->adj(c, i)}); } else if(WDIM == 2) { - cellwalker cw(c, 0); + cellwalker cw(c, 0); cw.cpeek(); transmatrix T = Id; T = T * currentmap->adj(c, 0); cw += wstep; @@ -1631,6 +1631,7 @@ EX vector adj_minefield_cells_full(cell *c) { cellwalker cw1 = cw; do { res.emplace_back(adj_data{cw.at, cw.mirrored, T}); + cw.cpeek(); T = T * currentmap->adj(cw.at, cw.spin); cw += wstep; cw++;