From ebe28e287049e915548bd435060f157e986fc686 Mon Sep 17 00:00:00 2001 From: maximius Date: Sat, 10 Oct 2009 17:09:52 -0700 Subject: *Having to cast this seems silly to me. Oh well, farewell, const-ness! --HG-- branch : trunk --- src/game/Creature.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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 -- cgit v1.2.3