mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 13:37:00 +00:00
[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:
parent
d75812749f
commit
6d62e595b6
2 changed files with 7 additions and 2 deletions
|
|
@ -25,6 +25,12 @@
|
||||||
|
|
||||||
#include "Common.h"
|
#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
|
/// List of Opcodes
|
||||||
enum Opcodes
|
enum Opcodes
|
||||||
{
|
{
|
||||||
|
|
@ -1230,7 +1236,6 @@ enum SessionStatus
|
||||||
STATUS_NEVER ///< Opcode not accepted from client (deprecated or server side only)
|
STATUS_NEVER ///< Opcode not accepted from client (deprecated or server side only)
|
||||||
};
|
};
|
||||||
|
|
||||||
class WorldSession;
|
|
||||||
class WorldPacket;
|
class WorldPacket;
|
||||||
|
|
||||||
struct OpcodeHandler
|
struct OpcodeHandler
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "6922"
|
#define REVISION_NR "6923"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue