Fix warnings.

This commit is contained in:
Gacko
2015-05-21 18:04:50 +02:00
parent 266c09f8a9
commit b9842fb8aa
3 changed files with 5 additions and 6 deletions

View File

@@ -39,8 +39,8 @@
Pet::Pet(Player* owner, PetType type) :
Guardian(NULL, owner, true), m_usedTalentCount(0), m_removed(false),
m_petType(type), m_duration(0), m_groupUpdateMask(0), m_loading(false),
m_declinedname(NULL)
m_petType(type), m_duration(0), m_loading(false), m_declinedname(NULL),
m_groupUpdateMask(0)
{
ASSERT(GetOwner());

View File

@@ -231,7 +231,7 @@ void Transport::Update(uint32 diff)
sScriptMgr->OnTransportUpdate(this, diff);
}
void Transport::DelayedUpdate(uint32 diff)
void Transport::DelayedUpdate(uint32 /*diff*/)
{
if (GetKeyFrames().size() <= 1)
return;

View File

@@ -629,10 +629,9 @@ void WorldSession::HandleInitiateRolePoll(WorldPackets::Party::InitiateRolePoll&
if (!group)
return;
if (!group->IsLeader(GetPlayer()->GetGUID()) && !group->IsAssistant(GetPlayer()->GetGUID()))
return;
ObjectGuid guid = GetPlayer()->GetGUID();
if (!group->IsLeader(guid) && !group->IsAssistant(guid))
return;
WorldPackets::Party::RolePollInform rolePollInform;
rolePollInform.From = GetPlayer()->GetGUID();