mirror of
https://github.com/mangosfour/server.git
synced 2025-12-21 01:37:05 +00:00
Some build errors fixed
72 errors and 7 warnings remaining at this point
This commit is contained in:
parent
923d3f5788
commit
85cd456287
4 changed files with 17 additions and 4 deletions
|
|
@ -40,11 +40,11 @@ static void DefineOpcode(uint16 opcode, const char* name, SessionStatus status,
|
|||
#define OPCODE( name, status, packetProcessing, handler ) DefineOpcode( name, #name, status, packetProcessing, handler )
|
||||
|
||||
/// Correspondence between opcodes and their names
|
||||
OpcodeHandler opcodeTable[MAX_OPCODE_TABLE_SIZE];
|
||||
OpcodeHandler opcodeTable[NUM_MSG_TYPES];
|
||||
|
||||
void InitializeOpcodes()
|
||||
{
|
||||
for(uint16 i = 0; i < MAX_OPCODE_TABLE_SIZE; ++i)
|
||||
for (uint16 i = 0; i < NUM_MSG_TYPES; ++i)
|
||||
DefineOpcode(i, "UNKNOWN", STATUS_UNHANDLED, PROCESS_INPLACE, &WorldSession::Handle_NULL);
|
||||
|
||||
OPCODE(MSG_WOW_CONNECTION, STATUS_NEVER, PROCESS_INPLACE, &WorldSession::Handle_EarlyProccess );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue