Ultra-Rogue: add a NULL check.
This commit is contained in:
parent
5e44d8334d
commit
73a6b21141
1 changed files with 1 additions and 1 deletions
|
|
@ -1143,7 +1143,7 @@ mon_mon_attack(struct thing *attacker, struct linked_list *mon, struct object *w
|
|||
|
||||
if (attacker->t_index == attackee->t_index)
|
||||
{
|
||||
if (attacker == THINGPTR(fam_ptr) && er_visible)
|
||||
if (fam_ptr && attacker == THINGPTR(fam_ptr) && er_visible)
|
||||
msg("Master, I cannot hit one of my brethren.");
|
||||
if (!thrown && rnd(100) - attacker->t_stats.s_charisma + luck < 0)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue