Skip to content

Commit 6f76046

Browse files
VelalanneNiam5
authored andcommitted
CreatePacket fixed (#521)
1 parent 469123a commit 6f76046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

methods/TrinityCore/GlobalMethods.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1962,7 +1962,7 @@ namespace LuaGlobalFunctions
19621962
if (opcode >= NUM_MSG_TYPES)
19631963
#else
19641964
OpcodeTable opcodeTable;
1965-
if ((!opcodeTable.IsValid((OpcodeClient)opcode)) || (!opcodeTable.IsValid((OpcodeServer)opcode)))
1965+
if ((!opcodeTable.IsValid((OpcodeClient)opcode)) && (!opcodeTable.IsValid((OpcodeServer)opcode)))
19661966
#endif
19671967
return luaL_argerror(E->L, 1, "valid opcode expected");
19681968

0 commit comments

Comments
 (0)