diff --git a/src/g_combat.c b/src/g_combat.c index 3bf5392..7b1592f 100644 --- a/src/g_combat.c +++ b/src/g_combat.c @@ -127,7 +127,7 @@ Killed(edict_t *targ, edict_t *inflictor, edict_t *attacker, } /* medics won't heal monsters that they kill themselves */ - if (strcmp(attacker->classname, "monster_medic") == 0) + if (attacker && attacker->classname && strcmp(attacker->classname, "monster_medic") == 0) { targ->owner = attacker; }