1
0
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:
Nicolay Korslund 2010-05-21 14:30:24 +02:00
parent bdb6896c3f
commit 8feb987a60

View File

@ -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