]> granicus.if.org Git - nethack/commit
fix inappropriate merge during aborted throw
authorPatR <rankin@nethack.org>
Tue, 13 Oct 2015 21:33:42 +0000 (14:33 -0700)
committerPatR <rankin@nethack.org>
Tue, 13 Oct 2015 21:33:42 +0000 (14:33 -0700)
commit7451e6c3b09fa064a4dc0196a0c534ec8827a92f
treea0f7a1892f660ef663b65e523f4b4e0263439168
parent7e46c4924c584f405b8d61f0fd4b2292bc6febdf
fix inappropriate merge during aborted throw

Fix the situation reported by Pasi where cancelling a throw via ESC at
the "which direction?" prompt resulted in "object null after merge"
panic from addinv().  I wasn't able to reproduce the panic, but I could
see the throw-nowhere stack getting merged into the quiver stack when
it shouldn't.  This fixes that.

Also a couple of formatting bits.  I wish I'd quit coming across those.
src/dothrow.c