* 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:
Machiavelli
2009-08-21 16:09:46 +02:00
parent cc4ae11383
commit 3dda9caedd

View File

@@ -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)