From fa75a812def3b365abff3147e7ae76642528ee36 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Wed, 5 Aug 2026 13:41:48 +0200 Subject: [PATCH] fixed a possible crash in flashWouldKill --- attack.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/attack.cpp b/attack.cpp index 48ee0cd3..fed2c28d 100644 --- a/attack.cpp +++ b/attack.cpp @@ -1169,9 +1169,9 @@ EX void handle_switchplaces(cell *c1, cell *c2, bool& switchplaces) { EX bool flashWouldKill(cell *c, flagtype extra) { for(int t=0; ttype; t++) { - cell *c2 = c->move(t); + cell *c2 = c->cmove(t); for(int u=0; utype; u++) { - cell *c3 = c2->move(u); + cell *c3 = c2->cmove(u); if(isWorm(c3)) continue; // immune to Flash if(isFriendly(c3)) continue; // player's allies and mounts don't count if(c3->monst == moEvilGolem) continue; // evil golems don't count