]> granicus.if.org Git - nethack/commit
avoid crash when thrown potion hits bars before a monster
authorcohrs <cohrs>
Tue, 21 Jun 2005 18:51:48 +0000 (18:51 +0000)
committercohrs <cohrs>
Tue, 21 Jun 2005 18:51:48 +0000 (18:51 +0000)
commitb72967f6a61b7a025aa0ca5771629d69de76437e
treeab88a3c2a99a80a0bad743a116f56d9019aeb9f5
parentbd1af399978a9756c8745ae5f748c817ebdb9ae3
avoid crash when thrown potion hits bars before a monster
From a bug report. <Someone> as slashem-Bugs-883643 on 1/24/2004.  To avoid
using the possibly invalid object pointer after calling bhit(), changed as
suggested to add another level of indirection allowing bhit to null the
object pointer before returning.  Callers that are affected update their
object pointers after bhit returns.
doc/fixes34.4
include/extern.h
src/apply.c
src/dokick.c
src/dothrow.c
src/zap.c