mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 09:44:45 +01:00
*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* result = NULL;
|
||||
if(!pVictim)
|
||||
return NULL;
|
||||
|
||||
uint64 guid = pVictim->GetGUID();
|
||||
for(std::list<HostilReference*>::const_iterator i = iThreatList.begin(); i != iThreatList.end(); ++i)
|
||||
|
||||
Reference in New Issue
Block a user