From 73a6b21141cbb460e4270de448cc057fe9cce820 Mon Sep 17 00:00:00 2001 From: "John \"Elwin\" Edwards" Date: Thu, 8 Feb 2018 18:56:15 -0500 Subject: [PATCH] Ultra-Rogue: add a NULL check. --- urogue/fight.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/urogue/fight.c b/urogue/fight.c index 1988218..55b099d 100644 --- a/urogue/fight.c +++ b/urogue/fight.c @@ -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) {