diff --git a/src/sounds.c b/src/sounds.c index f1dec986f..84883eab8 100644 --- a/src/sounds.c +++ b/src/sounds.c @@ -1001,6 +1001,9 @@ dochat() } tx = u.ux+u.dx; ty = u.uy+u.dy; + + if (!isok(tx,ty)) return (0); + mtmp = m_at(tx, ty); if ((!mtmp || mtmp->mundetected) &&