Core/Protocol: Add missing opcode ids that got enabled previous commit
Also, throw an error if opcode in handler is 0
This commit is contained in:
1 parent
f20c1fb112
commit
8816b00be7
2 files changed
+5
-3
No files matched your search
@@ -30,6 +30,8 @@ void InitOpcodes()
|
||||
{
|
||||
|
||||
#define DEFINE_OPCODE_HANDLER(opcode, status, processing, handler) \
|
||||
if (opcode == 0) \
|
||||
sLog->outError("Opcode %s got value 0", #opcode); \
|
||||
if (opcode < NUM_OPCODE_HANDLERS) { \
|
||||
if (opcodeTable[opcode] != NULL) \
|
||||
{ \
|
||||
|
||||
Reference in new issue
Block a user