*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:
megamage
2009-08-21 10:49:19 -05:00
parent 510410265d
commit 2ecd247dd4

View File

@@ -214,8 +214,6 @@ void ThreatContainer::clearReferences()
HostilReference* ThreatContainer::getReferenceByTarget(Unit* pVictim)
{
HostilReference* result = NULL;
if(!pVictim)
return NULL;
uint64 guid = pVictim->GetGUID();
for(std::list<HostilReference*>::const_iterator i = iThreatList.begin(); i != iThreatList.end(); ++i)