Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

Commit

Permalink
Reverted non needed changes - kept casts correction part only
Browse files Browse the repository at this point in the history
  • Loading branch information
sanctum32 committed Oct 30, 2023
1 parent 04cb9f6 commit f19ed6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 2 additions & 1 deletion src/server/game/Handlers/GroupHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ class Aura;

void WorldSession::SendPartyResult(PartyOperation operation, const std::string& member, PartyResult res, uint32 val /* = 0 */)
{
WorldPackets::Party::PartyCommandResult packet(member);
WorldPackets::Party::PartyCommandResult packet;
packet.Name = member;
packet.Command = static_cast<uint32>(operation);
packet.Result = static_cast<uint32>(res);
packet.ResultData = val;
Expand Down
12 changes: 5 additions & 7 deletions src/server/game/Server/Packets/PartyPackets.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,17 +106,15 @@ namespace WorldPackets
class PartyCommandResult final : public ServerPacket
{
public:
PartyCommandResult(std::string const& _name) : ServerPacket(SMSG_PARTY_COMMAND_RESULT, 4 + _name.length() + 4 + 4 + 8),
Command(0), Result(0), ResultData(0), Name(_name) { }
PartyCommandResult() : ServerPacket(SMSG_PARTY_COMMAND_RESULT, 4 + 1 + 4 + 4 + 8) { }

WorldPacket const* Write() override;

uint32 Command;
uint32 Result;
uint32 ResultData;
ObjectGuid ResultGUID;
private:
std::string Name;
uint32 Command = 0;
uint32 Result = 0;
uint32 ResultData = 0;
ObjectGuid ResultGUID;
};

class PartyInviteClient final : public ClientPacket
Expand Down

0 comments on commit f19ed6f

Please sign in to comment.