Core/Misc: fixed warnings and building connection patcher with boost versions below 1.61

This commit is contained in:
Ovahlord
2019-11-05 16:53:41 +01:00
parent abd3d58d57
commit 15f09fb82b
104 changed files with 297 additions and 471 deletions

View File

@@ -1709,7 +1709,7 @@ void Spell::EffectOpenLock(SpellEffIndex effIndex)
player->UpdateGatherSkill(skillId, pureSkillValue, reqSkillValue))
{
gameObjTarget->AddToSkillupList(player->GetGUID().GetCounter());
player->GiveXpForGather(skillId, reqSkillValue);
player->GiveXpForGather(skillId);
}
}
else if (itemTarget)
@@ -2591,7 +2591,7 @@ void Spell::EffectTameCreature(SpellEffIndex /*effIndex*/)
pet->SavePetToDB(PET_SAVE_NEW_PET);
if (uint8 slot = pet->GetSlot() <= PET_SLOT_LAST_ACTIVE_SLOT)
{
m_caster->ToPlayer()->GetSession()->SendPetAdded(pet->GetSlot(), pet->GetCharmInfo()->GetPetNumber(), creatureTarget->GetEntry(), creatureTarget->GetDisplayId(), creatureTarget->getLevel(), pet->GetName());
m_caster->ToPlayer()->GetSession()->SendPetAdded(pet->GetSlot(), pet->GetCharmInfo()->GetPetNumber(), creatureTarget->GetEntry(), creatureTarget->getLevel(), pet->GetName());
m_caster->ToPlayer()->PetSpellInitialize();
}
else
@@ -4741,7 +4741,7 @@ void Spell::EffectTransmitted(SpellEffIndex effIndex)
return;
}
float fx, fy, fz, fo;
float fx = 0.f, fy = 0.f, fz = 0.f, fo = 0.f;
if (m_targets.HasDst())
destTarget->GetPosition(fx, fy, fz, fo);