From: Pasi Kallinen Date: Sat, 21 Jan 2023 15:15:38 +0000 (+0200) Subject: Wrong order of params X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=52c98b300df582d1e80cba8db7a951905eba83dc;p=nethack Wrong order of params --- diff --git a/src/zap.c b/src/zap.c index 17353df2d..31a3a678d 100644 --- a/src/zap.c +++ b/src/zap.c @@ -4393,7 +4393,7 @@ dobuzz( gb.bhitpos.x = sx, gb.bhitpos.y = sy; /* Fireballs only damage when they explode */ if (type != ZT_SPELL(ZT_FIRE)) { - range += zap_over_floor(sx, sy, type, &shopdamage, 0, TRUE); + range += zap_over_floor(sx, sy, type, &shopdamage, TRUE, 0); /* zap with fire -> melt ice -> drown monster, so monster found and cached above might not be here any more */ mon = m_at(sx, sy);