# HG changeset patch # User John "Elwin" Edwards # Date 1518134175 18000 # Node ID 317166b49d8a9d1ade3973756ca48d1e56aad94c # Parent 000b1c5b8d63e708629db68203cb205bf726f6bd Ultra-Rogue: add a NULL check. diff -r 000b1c5b8d63 -r 317166b49d8a urogue/fight.c --- a/urogue/fight.c Mon Jan 15 20:20:35 2018 -0500 +++ b/urogue/fight.c Thu Feb 08 18:56:15 2018 -0500 @@ -1143,7 +1143,7 @@ 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) {