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.
This commit is contained in:
cohrs
2005-06-21 18:51:48 +00:00
parent bd1af39997
commit b72967f6a6
6 changed files with 25 additions and 12 deletions

View File

@@ -127,6 +127,7 @@ becoming green slime or mimicking gold violates "never changed form" conduct
when a monster grew into a higher form which had previously been genocided,
the message explaining its fate was only given if it was sensed via ESP
hero could still see for brief period after being blinded by potion vapors
avoid crash when thrown potion hits bars before a monster
Platform- and/or Interface-Specific Fixes