mirror of
https://github.com/libretro/scummvm.git
synced 2024-12-14 05:38:56 +00:00
Fixed dword alignment warning (as reported by salty-horse)
svn-id: r40198
This commit is contained in:
parent
4f9ea1c920
commit
7dbfb326cc
@ -131,17 +131,17 @@ const SCENE_STRUC *GetSceneStruc(const byte *pStruc) {
|
||||
return (const SCENE_STRUC *)pStruc;
|
||||
|
||||
// Copy appropriate fields into tempStruc, and return a pointer to it
|
||||
const uint32 *p = (const uint32 *)pStruc;
|
||||
const byte *p = pStruc;
|
||||
memset(&tempStruc, sizeof(SCENE_STRUC), 0);
|
||||
|
||||
tempStruc.numEntrance = *p++;
|
||||
tempStruc.numPoly = *p++;
|
||||
tempStruc.numTaggedActor = *p++;
|
||||
tempStruc.defRefer = *p++;
|
||||
tempStruc.hSceneScript = *p++;
|
||||
tempStruc.hEntrance = *p++;
|
||||
tempStruc.hPoly = *p++;
|
||||
tempStruc.hTaggedActor = *p++;
|
||||
tempStruc.numEntrance = READ_UINT32(p); p += sizeof(uint32);
|
||||
tempStruc.numPoly = READ_UINT32(p); p += sizeof(uint32);
|
||||
tempStruc.numTaggedActor = READ_UINT32(p); p += sizeof(uint32);
|
||||
tempStruc.defRefer = READ_UINT32(p); p += sizeof(uint32);
|
||||
tempStruc.hSceneScript = READ_UINT32(p); p += sizeof(uint32);
|
||||
tempStruc.hEntrance = READ_UINT32(p); p += sizeof(uint32);
|
||||
tempStruc.hPoly = READ_UINT32(p); p += sizeof(uint32);
|
||||
tempStruc.hTaggedActor = READ_UINT32(p); p += sizeof(uint32);
|
||||
|
||||
return &tempStruc;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user