mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
* Partial revert of last changeset, double nullpointer check is not needed since everything seems to go via ThreatContainer::getReferenceByTarget
--HG-- branch : trunk
This commit is contained in:
@@ -437,9 +437,6 @@ Unit* ThreatManager::getHostilTarget()
|
||||
|
||||
float ThreatManager::getThreat(Unit *pVictim, bool pAlsoSearchOfflineList)
|
||||
{
|
||||
if(!pVictim)
|
||||
return NULL;
|
||||
|
||||
float threat = 0.0f;
|
||||
HostilReference* ref = iThreatContainer.getReferenceByTarget(pVictim);
|
||||
if(!ref && pAlsoSearchOfflineList)
|
||||
|
||||
Reference in New Issue
Block a user