]> granicus.if.org Git - nethack/commitdiff
Wrong order of params
authorPasi Kallinen <paxed@alt.org>
Sat, 21 Jan 2023 15:15:38 +0000 (17:15 +0200)
committerPasi Kallinen <paxed@alt.org>
Sat, 21 Jan 2023 15:15:38 +0000 (17:15 +0200)
src/zap.c

index 17353df2dee8849adcdb0f75fa6c8aaf196eacc9..31a3a678d81b46906d12c0bd74f435d798fd72af 100644 (file)
--- 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);