Skip to content

Commit

Permalink
compile fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KamiliaBlow committed Nov 1, 2024
1 parent 867b89f commit f722ea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/server/game/Entities/Player/Player.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ enum PlayerRestState : uint8;
enum class PlayerCreateMode : int8;
enum RestTypes : uint8;
enum TransferAbortReason : uint32;
enum OpcodeServer : uint16;
enum OpcodeServer : uint32;

namespace BattlePets
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1872,7 +1872,7 @@ namespace LuaGlobalFunctions
{
uint32 opcode = E->CHECKVAL<uint32>(1);
size_t size = E->CHECKVAL<size_t>(2);
if (opcode >= MAX_CMSG_OPCODE_NUMBER)
if (opcode >= NUM_CMSG_OPCODES)
return luaL_argerror(E->L, 1, "valid opcode expected");

E->Push(new WorldPacket((OpcodesList)opcode, size));
Expand Down

0 comments on commit f722ea7

Please sign in to comment.