Skip to content

Commit

Permalink
Update PetDismissSound member type and name.
Browse files Browse the repository at this point in the history
  • Loading branch information
r4d1sh committed Feb 9, 2025
1 parent 13fc66f commit cb943ca
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/server/game/Entities/Unit/Unit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10261,7 +10261,7 @@ void Unit::SendPetActionSound(PetAction action) const
void Unit::SendPetDismissSound() const
{
if (CreatureDisplayInfoEntry const* displayInfo = sCreatureDisplayInfoStore.LookupEntry(GetNativeDisplayId()))
SendMessageToSet(WorldPackets::Pet::PetDismissSound(displayInfo->ModelID, GetPosition()).Write(), false);
SendMessageToSet(WorldPackets::Pet::PetDismissSound(static_cast<int32>(displayInfo->ModelID), GetPosition()).Write(), false);
}

void Unit::SendPetAIReaction(ObjectGuid guid) const
Expand Down
4 changes: 2 additions & 2 deletions src/server/game/Server/Packets/PetPackets.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ WorldPacket const* WorldPackets::Pet::PetActionSound::Write()

WorldPacket const* WorldPackets::Pet::PetDismissSound::Write()
{
_worldPacket << uint32(ModelId);
_worldPacket << Pos;
_worldPacket << int32(ModelId);
_worldPacket << ModelPosition;
return &_worldPacket;
}
8 changes: 4 additions & 4 deletions src/server/game/Server/Packets/PetPackets.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ namespace WorldPackets
class PetDismissSound final : public ServerPacket
{
public:
PetDismissSound(uint32 modelId, Position pos)
: ServerPacket(SMSG_PET_DISMISS_SOUND, 4 + 12), ModelId(modelId), Pos(pos) { }
PetDismissSound(int32 modelId, Position modelPosition)
: ServerPacket(SMSG_PET_DISMISS_SOUND, 4 + 12), ModelId(modelId), ModelPosition(modelPosition) { }

WorldPacket const* Write() override;

uint32 ModelId = 0;
TaggedPosition<Position::XYZ> Pos;
int32 ModelId = 0;
TaggedPosition<Position::XYZ> ModelPosition;
};
}
}
Expand Down

0 comments on commit cb943ca

Please sign in to comment.