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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user