mirror of
https://github.com/EQEmu/Server.git
synced 2026-03-26 05:22:25 +00:00
Merge branch 'master' of git://github.com/EQEmu/Server
This commit is contained in:
commit
c26637de53
@ -3415,9 +3415,14 @@ void EntityList::ReloadAllClientsTaskState(int TaskID)
|
|||||||
|
|
||||||
bool EntityList::IsMobInZone(Mob *who)
|
bool EntityList::IsMobInZone(Mob *who)
|
||||||
{
|
{
|
||||||
auto it = mob_list.find(who->GetID());
|
//We don't use mob_list.find(who) because this code needs to be able to handle dangling pointers for the quest code.
|
||||||
if (it != mob_list.end())
|
auto it = mob_list.begin();
|
||||||
return who == it->second;
|
while(it != mob_list.end()) {
|
||||||
|
if(it->second == who) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
++it;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user