From: Pasi Kallinen Date: Thu, 15 Oct 2015 11:56:42 +0000 (+0300) Subject: Add missing thrownobj clears when the obj is destroyed X-Git-Tag: NetHack-3.6.0_RC01~155 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f1c1f3cb8a6a8a018957fbd0fa626d05d552fafc;p=nethack Add missing thrownobj clears when the obj is destroyed --- diff --git a/src/dothrow.c b/src/dothrow.c index ac447714d..91ffef4c0 100644 --- a/src/dothrow.c +++ b/src/dothrow.c @@ -1231,10 +1231,13 @@ boolean tmp_at(DISP_END, 0); breakmsg(obj, cansee(bhitpos.x, bhitpos.y)); breakobj(obj, bhitpos.x, bhitpos.y, TRUE, TRUE); + thrownobj = (struct obj *) 0; return; } - if (flooreffects(obj, bhitpos.x, bhitpos.y, "fall")) + if (flooreffects(obj, bhitpos.x, bhitpos.y, "fall")) { + thrownobj = (struct obj *) 0; return; + } obj_no_longer_held(obj); if (mon && mon->isshk && is_pick(obj)) { if (cansee(bhitpos.x, bhitpos.y))