Added struct packing pragmas to esm/loadregn.hpp (fixes Assertion "sizeof(X) == size" failed.)

actorid
Nicolay Korslund 15 years ago
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…
Cancel
Save