diff options
| author | maximius <none@none> | 2009-09-29 01:36:01 -0700 |
|---|---|---|
| committer | maximius <none@none> | 2009-09-29 01:36:01 -0700 |
| commit | 21f08bff8e6c5f9366828a2be19bc16db781231d (patch) | |
| tree | f088d5250c09ed0c3b57d29efbcaca5879cf6b54 /src/game/Creature.cpp | |
| parent | aa5e2d3b2810ed38129254d007e943f155e79111 (diff) | |
*Fix a crash in boss_svala.cpp + fix build
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
| -rw-r--r-- | src/game/Creature.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 3440c0793b9..1dc436b104f 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -1690,7 +1690,7 @@ bool Creature::canStartAttack(Unit const* who, bool force) const if(!force) { // if victim(1) has a victim(2), and victim(2) is a non-friendly player, don't attack victim(1) unless forced - if(who->getVictim() && who->getVictim()->GetCharmerOrOwnerPlayerOrPlayerItself() && !IsFriendlyTo(who->getVictim()) + if(who->getVictim() && who->getVictim()->GetCharmerOrOwnerPlayerOrPlayerItself() && !IsFriendlyTo(who->getVictim())) return false; if(who->isInCombat()) |
