Skip to content

Commit

Permalink
Fix logic for blow with non-NULL blow_effect2
Browse files Browse the repository at this point in the history
Resolves crash seen placing a ghost with a blow that had NULL for blow_effect1 and not NULL for blow_effect2.
  • Loading branch information
backwardsEric authored and NickMcConnell committed Jun 3, 2024
1 parent 99926ec commit cf04655
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mon-make.c
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ static void process_ghost_race_class(struct player_race *p_race,
if (!race->blow[i].effect) break;
if (strcmp(race->blow[i].effect->name, "HURT") == 0) {
race->blow[i].effect =
lookup_monster_blow_effect(lev->blow_effect1);
lookup_monster_blow_effect(lev->blow_effect2);
hurt++;
break;
}
Expand Down

0 comments on commit cf04655

Please sign in to comment.