From 6d62e595b6fc3b0632c48b510929863b09cf13ca Mon Sep 17 00:00:00 2001 From: VladimirMangos Date: Sat, 20 Dec 2008 03:47:29 +0300 Subject: [PATCH] [6923] Fixed opcide table miscompilation at VC in x64 release mode. In 303 branch it showup as crash at most chat commands. --- src/game/Opcodes.h | 7 ++++++- src/shared/revision_nr.h | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/game/Opcodes.h b/src/game/Opcodes.h index 7ea983757..124a03c68 100644 --- a/src/game/Opcodes.h +++ b/src/game/Opcodes.h @@ -25,6 +25,12 @@ #include "Common.h" +// Note: this include need for be sure have full definition of class WorldSession +// if this class definition not complite then VS for x64 release use different size for +// struct OpcodeHandler in this header and Opcode.cpp and get totally wrong data from +// table opcodeTable in source when Opcode.h included but WorldSession.h not included +#include "WorldSession.h" + /// List of Opcodes enum Opcodes { @@ -1230,7 +1236,6 @@ enum SessionStatus STATUS_NEVER ///< Opcode not accepted from client (deprecated or server side only) }; -class WorldSession; class WorldPacket; struct OpcodeHandler diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 482bae0e8..eafc0b2c5 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "6922" + #define REVISION_NR "6923" #endif // __REVISION_NR_H__