Rename 'Hostil' to 'Hostile'

Credits to NoFantasy (Mangos)
Closes issue #411

--HG--
branch : trunk
This commit is contained in:
Spp
2010-03-09 11:11:10 +01:00
parent c716c0e5e5
commit 8034a6c48e
63 changed files with 260 additions and 260 deletions
+3 -3
View File
@@ -72,15 +72,15 @@ class UnitAI
// predicate shall extend std::unary_function<Unit *, bool>
template<class PREDICATE> Unit* SelectTarget(SelectAggroTarget targetType, uint32 position, PREDICATE predicate)
{
const std::list<HostilReference *> &threatlist = me->getThreatManager().getThreatList();
const std::list<HostileReference *> &threatlist = me->getThreatManager().getThreatList();
std::list<Unit*> targetList;
if (position >= threatlist.size())
return NULL;
for (std::list<HostilReference*>::const_iterator itr = threatlist.begin(); itr != threatlist.end(); ++itr)
for (std::list<HostileReference*>::const_iterator itr = threatlist.begin(); itr != threatlist.end(); ++itr)
{
HostilReference* ref = (*itr);
HostileReference* ref = (*itr);
if (predicate(ref->getTarget()))
targetList.push_back(ref->getTarget());
}