diff options
author | Machiavelli <none@none> | 2009-08-21 16:09:46 +0200 |
---|---|---|
committer | Machiavelli <none@none> | 2009-08-21 16:09:46 +0200 |
commit | 3dda9caedd571fc815adad9616b8d33b3ad91c2b (patch) | |
tree | 6bf3540dc6fb23f567dd7a99828ce7e005577a98 /src/game | |
parent | cc4ae11383d360148ae582dc14fba0a3d04092dd (diff) |
* Partial revert of last changeset, double nullpointer check is not needed since everything seems to go via ThreatContainer::getReferenceByTarget
--HG--
branch : trunk
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/ThreatManager.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/game/ThreatManager.cpp b/src/game/ThreatManager.cpp index 4c2727c1567..074fb398976 100644 --- a/src/game/ThreatManager.cpp +++ b/src/game/ThreatManager.cpp @@ -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) |