From ca40dfd64338d5608e7836928b2eaa1648ae7caf Mon Sep 17 00:00:00 2001 From: Chuck Miller Date: Mon, 4 May 2009 01:42:34 -0400 Subject: Check to see if their is a victim before sending a arrow --- src/being.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/being.cpp b/src/being.cpp index a755ffb8..843f7da6 100644 --- a/src/being.cpp +++ b/src/being.cpp @@ -473,7 +473,7 @@ void Being::handleAttack(Being *victim, int damage, AttackType type) if (this != player_node) setAction(Being::ATTACK); #ifdef EATHENA_SUPPORT - if (getType() == PLAYER) + if (getType() == PLAYER && victim) { if (mEquippedWeapon && mEquippedWeapon->getAttackType() == ACTION_ATTACK_BOW) { -- cgit v1.2.3-70-g09d2