Core/PacketIO: Fixed SMSG_LEVEL_UP_INFO structure

This commit is contained in:
Shauren
2021-11-16 15:53:40 +01:00
parent 3e1baf5bd9
commit b981606575
2 changed files with 3 additions and 2 deletions

View File

@@ -2362,6 +2362,7 @@ void Player::GiveLevel(uint8 level)
packet.PowerDelta[3] = 0;
packet.PowerDelta[4] = 0;
packet.PowerDelta[5] = 0;
packet.PowerDelta[6] = 0;
for (uint8 i = STAT_STRENGTH; i < MAX_STATS; ++i)
packet.StatDelta[i] = int32(info.stats[i]) - GetCreateStat(Stats(i));

View File

@@ -499,13 +499,13 @@ namespace WorldPackets
class LevelUpInfo final : public ServerPacket
{
public:
LevelUpInfo() : ServerPacket(SMSG_LEVEL_UP_INFO, 56) { }
LevelUpInfo() : ServerPacket(SMSG_LEVEL_UP_INFO, 60) { }
WorldPacket const* Write() override;
int32 Level = 0;
int32 HealthDelta = 0;
std::array<int32, 6> PowerDelta = { };
std::array<int32, MAX_POWERS_PER_CLASS> PowerDelta = { };
std::array<int32, MAX_STATS> StatDelta = { };
int32 NumNewTalents = 0;
int32 NumNewPvpTalentSlots = 0;