mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-08 09:37:53 +00:00
Added struct packing pragmas to esm/loadregn.hpp (fixes Assertion "sizeof(X) == size" failed.)
This commit is contained in:
parent
bdb6896c3f
commit
8feb987a60
@ -11,6 +11,8 @@ namespace ESM {
|
|||||||
|
|
||||||
struct Region
|
struct Region
|
||||||
{
|
{
|
||||||
|
#pragma pack(push)
|
||||||
|
#pragma pack(1)
|
||||||
struct WEATstruct
|
struct WEATstruct
|
||||||
{
|
{
|
||||||
// I guess these are probabilities
|
// I guess these are probabilities
|
||||||
@ -27,6 +29,7 @@ struct Region
|
|||||||
NAME32 sound;
|
NAME32 sound;
|
||||||
char chance;
|
char chance;
|
||||||
}; // 33 bytes
|
}; // 33 bytes
|
||||||
|
#pragma pack(pop)
|
||||||
|
|
||||||
WEATstruct data;
|
WEATstruct data;
|
||||||
int mapColor; // RGBA
|
int mapColor; // RGBA
|
||||||
|
Loading…
Reference in New Issue
Block a user