aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormaximius <none@none>2009-10-10 17:09:52 -0700
committermaximius <none@none>2009-10-10 17:09:52 -0700
commitebe28e287049e915548bd435060f157e986fc686 (patch)
treefb36b6124f8c48588cb9aaa2326f5380be9613d8 /src
parentc3dfa34d8d11d1aed7dbf2aa53bcd9d23a9f44fa (diff)
*Having to cast this seems silly to me. Oh well, farewell, const-ness!
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/Creature.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp
index 8e246cba4cc..e2925ff9745 100644
--- a/src/game/Creature.cpp
+++ b/src/game/Creature.cpp
@@ -2193,7 +2193,7 @@ bool Creature::_IsTargetAcceptable(const Unit *target) const
return true;
// if I'm not aggressive, the target is not acceptable
- if (GetReactState() != REACT_AGGRESSIVE)
+ if (((Creature*)this)->GetReactState() != REACT_AGGRESSIVE)
return false;
// if I'm hostile towards the target, the target is acceptable