Eluna fix opcode definitions

This commit is contained in:
Rochet2
2014-06-02 15:49:42 +03:00
committed by Foereaper
parent 9a1f8c7884
commit 40774d0c5c
4 changed files with 7 additions and 8 deletions

View File

@@ -29,7 +29,7 @@ namespace LuaPacket
uint32 opcode = Eluna::CHECKVAL<uint32>(L, 2);
if (opcode >= NUM_MSG_TYPES)
return luaL_argerror(L, 2, "valid opcode expected");
packet->SetOpcode((Opcodes)opcode);
packet->SetOpcode((OpcodesList)opcode);
return 0;
}