mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-30 09:36:43 +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
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue