More warning removal (Some code modifications and cleanup when needed)

--HG--
branch : trunk
This commit is contained in:
Spp committed 2010-04-19 17:03:10 +02:00
1 parent f74e969a06
commit be01821050
46 files changed
+420 -353

No files matched your search

+1 -7
View File
@@ -249,16 +249,10 @@ void TempSummon::RemoveFromWorld()
return;
if (m_Properties)
{
if (uint32 slot = m_Properties->Slot)
{
if (Unit* owner = GetSummoner())
{
if (owner->m_SummonSlot[slot] = GetGUID())
if (owner->m_SummonSlot[slot] == GetGUID())
owner->m_SummonSlot[slot] = 0;
}
}
}
//if (GetOwnerGUID())
// sLog.outError("Unit %u has owner guid when removed from world", GetEntry());