mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-07 12:54:00 +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
|
||||
{
|
||||
#pragma pack(push)
|
||||
#pragma pack(1)
|
||||
struct WEATstruct
|
||||
{
|
||||
// I guess these are probabilities
|
||||
@ -27,6 +29,7 @@ struct Region
|
||||
NAME32 sound;
|
||||
char chance;
|
||||
}; // 33 bytes
|
||||
#pragma pack(pop)
|
||||
|
||||
WEATstruct data;
|
||||
int mapColor; // RGBA
|
||||
|
Loading…
Reference in New Issue
Block a user