Ultra-Rogue: add a NULL check.

This commit is contained in:
John "Elwin" Edwards 2018-02-08 18:56:15 -05:00
parent 5e44d8334d
commit 73a6b21141

View file

@ -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)
{