[6923] Fixed opcide table miscompilation at VC in x64 release mode.

In 303 branch it showup as crash at most chat commands.
This commit is contained in:
VladimirMangos 2008-12-20 03:47:29 +03:00 committed by tomrus88
parent d75812749f
commit 6d62e595b6
2 changed files with 7 additions and 2 deletions

View file

@ -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

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "6922"
#define REVISION_NR "6923"
#endif // __REVISION_NR_H__