summaryrefslogtreecommitdiff
path: root/src/being.cpp
diff options
context:
space:
mode:
authorChuck Miller <shadowmil@gmail.com>2009-05-04 01:42:34 -0400
committerChuck Miller <shadowmil@gmail.com>2009-05-04 01:42:34 -0400
commitca40dfd64338d5608e7836928b2eaa1648ae7caf (patch)
treec95770dc0a1ad3828c362be1743d6ce04c86a475 /src/being.cpp
parent475e82064aad752d077cf1071b967b149a5ae179 (diff)
downloadmana-ca40dfd64338d5608e7836928b2eaa1648ae7caf.tar.gz
mana-ca40dfd64338d5608e7836928b2eaa1648ae7caf.tar.bz2
mana-ca40dfd64338d5608e7836928b2eaa1648ae7caf.tar.xz
mana-ca40dfd64338d5608e7836928b2eaa1648ae7caf.zip
Check to see if their is a victim before sending a arrow
Diffstat (limited to 'src/being.cpp')
-rw-r--r--src/being.cpp2
1 files changed, 1 insertions, 1 deletions
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)
{