diff --git a/GpApp/GliderStructs.h b/GpApp/GliderStructs.h index 63c9c63..316577a 100644 --- a/GpApp/GliderStructs.h +++ b/GpApp/GliderStructs.h @@ -7,6 +7,7 @@ #include "PLQDOffscreen.h" #include "GpVOSEvent.h" +#include "ByteSwap.h" typedef struct { @@ -346,7 +347,7 @@ typedef struct typedef struct { - Int32 frame; + BEInt32_t frame; char key; char padding; } demoType, *demoPtr; diff --git a/GpApp/StructuresInit2.cpp b/GpApp/StructuresInit2.cpp index 2d034db..86abde7 100644 --- a/GpApp/StructuresInit2.cpp +++ b/GpApp/StructuresInit2.cpp @@ -288,6 +288,8 @@ void CreatePointers (void) RedAlert(kErrNoMemory); else { + PL_STATIC_ASSERT(sizeof(demoType) == 6); + BlockMove(*tempHandle, demoData, kDemoLength); tempHandle.Dispose(); }