From 2ecd247dd438abf1949dfb56a52ed20ffe527231 Mon Sep 17 00:00:00 2001 From: megamage Date: Fri, 21 Aug 2009 10:49:19 -0500 Subject: *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 --- src/game/ThreatManager.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') 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::const_iterator i = iThreatList.begin(); i != iThreatList.end(); ++i) -- cgit v1.2.3