diff options
| author | megamage <none@none> | 2009-08-21 10:49:19 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-08-21 10:49:19 -0500 |
| commit | 2ecd247dd438abf1949dfb56a52ed20ffe527231 (patch) | |
| tree | 5e07c6056d4a90d330eec1142eb388fd8669630c | |
| parent | 510410265d7943a8ddb16aa23951c373d16b2df5 (diff) | |
*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
| -rw-r--r-- | src/game/ThreatManager.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/game/ThreatManager.cpp b/src/game/ThreatManager.cpp index 074fb398976..001778d7b66 100644 --- a/src/game/ThreatManager.cpp +++ b/src/game/ThreatManager.cpp @@ -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) |
