From 96162c14eab2654802e86ce096e14ee852f9829d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Fri, 16 Feb 2007 12:34:30 +0000 Subject: Ugh -- these internal iMuse structs were supposed to be packed, but never were explicitly markes as such. Doing that now (might break old savegames on some ports :/) svn-id: r25629 --- engines/scumm/imuse/instrument.cpp | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/engines/scumm/imuse/instrument.cpp b/engines/scumm/imuse/instrument.cpp index 90d734f00d..171efe9b4b 100644 --- a/engines/scumm/imuse/instrument.cpp +++ b/engines/scumm/imuse/instrument.cpp @@ -144,6 +144,9 @@ public: class Instrument_Adlib : public InstrumentInternal { private: + +#include "common/pack-start.h" // START STRUCT PACKING + struct { byte flags_1; byte oplvl_1; @@ -163,6 +166,8 @@ private: byte duration; } _instrument; +#include "common/pack-end.h" // END STRUCT PACKING + public: Instrument_Adlib(const byte *data); Instrument_Adlib(Serializer *s); @@ -174,6 +179,9 @@ public: class Instrument_Roland : public InstrumentInternal { private: + +#include "common/pack-start.h" // START STRUCT PACKING + struct RolandInstrument { byte roland_id; byte device_id; @@ -231,7 +239,10 @@ private: byte tva_env_sustain_level; } partial[4]; byte checksum; - } GNUPACK; + }; + +#include "common/pack-end.h" // END STRUCT PACKING + RolandInstrument _instrument; char _instrument_name [11]; -- cgit v1.2.3