Core/Misc: fixed gcc warnings

This commit is contained in:
Ovahlord committed 2020-04-04 20:20:41 +02:00
1 parent 31b86c20e3
commit 77cf10ee5f
29 files changed
+59 -46

No files matched your search

+2 -2
View File
@@ -2527,7 +2527,7 @@ void Spell::EffectTameCreature(SpellEffIndex /*effIndex*/)
if (m_caster->GetTypeId() == TYPEID_PLAYER)
{
pet->SavePetToDB(PET_SAVE_NEW_PET);
if (uint8 slot = pet->GetSlot() <= PET_SLOT_LAST_ACTIVE_SLOT)
if (pet->GetSlot() <= PET_SLOT_LAST_ACTIVE_SLOT)
{
m_caster->ToPlayer()->GetSession()->SendPetAdded(pet->GetSlot(), pet->GetCharmInfo()->GetPetNumber(), creatureTarget->GetEntry(), creatureTarget->getLevel(), pet->GetName());
m_caster->ToPlayer()->PetSpellInitialize();
@@ -3727,7 +3727,7 @@ void Spell::EffectActivateObject(SpellEffIndex effIndex)
break;
case GameObjectActions::OpenAndUnlock:
gameObjTarget->UseDoorOrButton(0, false, m_caster);
// no break
[[fallthrough]];
case GameObjectActions::Unlock:
case GameObjectActions::Lock:
gameObjTarget->ApplyModFlag(GAMEOBJECT_FLAGS, GO_FLAG_LOCKED, action == GameObjectActions::Lock);