*Remove a check in getreferencebytarget. If a crash happens, the check should be made in the high-level function but not low-level function.
--HG-- branch : trunk
This commit is contained in:
@@ -214,8 +214,6 @@ void ThreatContainer::clearReferences()
|
|||||||
HostilReference* ThreatContainer::getReferenceByTarget(Unit* pVictim)
|
HostilReference* ThreatContainer::getReferenceByTarget(Unit* pVictim)
|
||||||
{
|
{
|
||||||
HostilReference* result = NULL;
|
HostilReference* result = NULL;
|
||||||
if(!pVictim)
|
|
||||||
return NULL;
|
|
||||||
|
|
||||||
uint64 guid = pVictim->GetGUID();
|
uint64 guid = pVictim->GetGUID();
|
||||||
for(std::list<HostilReference*>::const_iterator i = iThreatList.begin(); i != iThreatList.end(); ++i)
|
for(std::list<HostilReference*>::const_iterator i = iThreatList.begin(); i != iThreatList.end(); ++i)
|
||||||
|
|||||||
Reference in New Issue
Block a user