mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Eluna Fix static analysis noted warnings and errors
This commit is contained in:
@@ -1532,7 +1532,7 @@ namespace LuaGlobalFunctions
|
||||
int CreatePacket(Eluna* /*E*/, lua_State* L)
|
||||
{
|
||||
uint32 opcode = Eluna::CHECKVAL<uint32>(L, 1);
|
||||
uint32 size = Eluna::CHECKVAL<uint32>(L, 2);
|
||||
size_t size = Eluna::CHECKVAL<size_t>(L, 2);
|
||||
if (opcode >= NUM_MSG_TYPES)
|
||||
return luaL_argerror(L, 1, "valid opcode expected");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user