*Having to cast this seems silly to me. Oh well, farewell, const-ness!

--HG--
branch : trunk
This commit is contained in:
maximius
2009-10-10 17:09:52 -07:00
parent c3dfa34d8d
commit ebe28e2870

View File

@@ -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