Core/Misc: Tweaked ThreatContainer internals

(and many cosmetic changes here and there)
This commit is contained in:
Spp
2012-10-26 14:31:19 +02:00
parent 6d55ac8c58
commit 876ad50dcd
53 changed files with 312 additions and 426 deletions
+2 -2
View File
@@ -798,8 +798,8 @@ public:
if (!target || target->isTotem() || target->isPet())
return false;
std::list<HostileReference*>& threatList = target->getThreatManager().getThreatList();
std::list<HostileReference*>::iterator itr;
ThreatContainer::StorageType const &threatList = target->getThreatManager().getThreatList();
ThreatContainer::StorageType::const_iterator itr;
uint32 count = 0;
handler->PSendSysMessage("Threat list of %s (guid %u)", target->GetName().c_str(), target->GetGUIDLow());
for (itr = threatList.begin(); itr != threatList.end(); ++itr)