Fix fired iron ball sanity error

When hero was punished and swallowed, and fired the attached
iron ball from a quiver, thrownobj was not cleared.
This commit is contained in:
Pasi Kallinen
2019-10-11 20:00:17 +03:00
parent ad302fb8a9
commit 02b9368dba
2 changed files with 2 additions and 1 deletions

View File

@@ -1294,7 +1294,7 @@ boolean twoweap; /* used to restore twoweapon mode if wielded weapon returns */
|| !index(in_rooms(mon->mx, mon->my, SHOPBASE), *u.ushops)))
hot_pursuit(mon);
if (obj_gone)
if (obj_gone || obj == uball)
thrownobj = (struct obj *) 0;
}