mirror of
https://github.com/mangosfour/server.git
synced 2025-12-14 07:37:01 +00:00
[10599] Attempt fix data corruption for some localization structures with GCC use.
By unknown reason GCC generate wrong code for locale structures declared in header after pack pragma. Signed-off-by: VladimirMangos <vladimir@getmangos.com>
This commit is contained in:
parent
ba3578107a
commit
0205adfde1
4 changed files with 23 additions and 19 deletions
|
|
@ -516,6 +516,13 @@ struct GameObjectInfo
|
|||
}
|
||||
};
|
||||
|
||||
// By unknown reason GCC generate wrong code for locale structures declared in header after pack pragma
|
||||
struct GameObjectLocale
|
||||
{
|
||||
std::vector<std::string> Name;
|
||||
std::vector<std::string> CastBarCaption;
|
||||
};
|
||||
|
||||
// GCC have alternative #pragma pack() syntax and old gcc version not support pack(pop), also any gcc version not support it at some platform
|
||||
#if defined( __GNUC__ )
|
||||
#pragma pack()
|
||||
|
|
@ -523,12 +530,6 @@ struct GameObjectInfo
|
|||
#pragma pack(pop)
|
||||
#endif
|
||||
|
||||
struct GameObjectLocale
|
||||
{
|
||||
std::vector<std::string> Name;
|
||||
std::vector<std::string> CastBarCaption;
|
||||
};
|
||||
|
||||
// client side GO show states
|
||||
enum GOState
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue