Skip to content

Commit

Permalink
Fix: potentially uninitialized local pointer in explode (flash bomb e…
Browse files Browse the repository at this point in the history
…xplosion).
  • Loading branch information
elunna committed Nov 15, 2023
1 parent 8bd2aeb commit 769da4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/explode.c
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ int expltype;
}
if (adtyp == AD_STUN) {
make_stunned((HStun & TIMEOUT) + (long) damu, FALSE);
if (can_blnd(mtmp, &youmonst, AT_EXPL, (struct obj *) 0)) {
if (can_blnd((struct monst *) 0, &youmonst, AT_EXPL, (struct obj *) 0)) {
if (uarmh && uarmh->otyp == PLASTEEL_HELM) {
Your("shaded visor protects you from the flash.");
} else if (!Blind) {
Expand Down

0 comments on commit 769da4b

Please sign in to comment.