This commit is contained in:
tomrus88 2009-07-05 13:19:37 +04:00
parent 62327e7af0
commit 5af8fb89d0
2 changed files with 5 additions and 5 deletions

View file

@ -20481,3 +20481,4 @@ void Player::SendDuelCountdown(uint32 counter)
WorldPacket data(SMSG_DUEL_COUNTDOWN, 4);
data << uint32(counter); // seconds
GetSession()->SendPacket(&data);
}

View file

@ -85,8 +85,8 @@ void Totem::UnSummon()
{
CombatStop();
RemoveAurasDueToSpell(GetSpell());
Unit *owner = GetOwner();
if (owner)
if (Unit *owner = GetOwner())
{
// clear owner's totem slot
for(int i = 0; i < MAX_TOTEM; ++i)
@ -106,8 +106,7 @@ void Totem::UnSummon()
((Player*)owner)->SendAutoRepeatCancel(this);
// Not only the player can summon the totem (scripted AI)
Group *pGroup = ((Player*)owner)->GetGroup();
if (pGroup)
if (Group *pGroup = ((Player*)owner)->GetGroup())
{
for(GroupReference *itr = pGroup->GetFirstMember(); itr != NULL; itr = itr->next())
{