mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[9324] Fix some gcc warnings
This commit is contained in:
parent
2a01c79609
commit
4338c9105d
27 changed files with 102 additions and 103 deletions
|
|
@ -743,7 +743,6 @@ void WorldSession::HandleStableSwapPet( WorldPacket & recv_data )
|
|||
if(GetPlayer()->hasUnitState(UNIT_STAT_DIED))
|
||||
GetPlayer()->RemoveSpellsCausingAura(SPELL_AURA_FEIGN_DEATH);
|
||||
|
||||
WorldPacket data(SMSG_STABLE_RESULT, 200); // guess size
|
||||
|
||||
Pet* pet = _player->GetPet();
|
||||
|
||||
|
|
@ -782,6 +781,8 @@ void WorldSession::HandleStableSwapPet( WorldPacket & recv_data )
|
|||
// move alive pet to slot or delete dead pet
|
||||
_player->RemovePet(pet,pet->isAlive() ? PetSaveMode(slot) : PET_SAVE_AS_DELETED);
|
||||
|
||||
WorldPacket data(SMSG_STABLE_RESULT, 1); // guess size
|
||||
|
||||
// summon unstabled pet
|
||||
Pet *newpet = new Pet;
|
||||
if(!newpet->LoadPetFromDB(_player,creature_id,pet_number))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue