diff options
author | Chuck Miller <shadowmil@gmail.com> | 2009-05-04 01:42:34 -0400 |
---|---|---|
committer | Chuck Miller <shadowmil@gmail.com> | 2009-05-04 01:42:34 -0400 |
commit | ca40dfd64338d5608e7836928b2eaa1648ae7caf (patch) | |
tree | c95770dc0a1ad3828c362be1743d6ce04c86a475 | |
parent | 475e82064aad752d077cf1071b967b149a5ae179 (diff) | |
download | mana-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
-rw-r--r-- | src/being.cpp | 2 |
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) { |