diff options
author | Filippos Karapetis | 2013-06-17 21:08:29 +0300 |
---|---|---|
committer | Filippos Karapetis | 2013-06-17 21:08:29 +0300 |
commit | 4b6907141b82b2f38fab5d13ffab4081a8d2264d (patch) | |
tree | 939c7d0fb51b19d5087909cd5cc034c15c2108ce /engines | |
parent | f449268380baf0cfa015162903f7e65222146ef0 (diff) | |
download | scummvm-rg350-4b6907141b82b2f38fab5d13ffab4081a8d2264d.tar.gz scummvm-rg350-4b6907141b82b2f38fab5d13ffab4081a8d2264d.tar.bz2 scummvm-rg350-4b6907141b82b2f38fab5d13ffab4081a8d2264d.zip |
TINSEL: Fix incorrect byte swapping on BE systems (bug #3614416)
This is a regression from commit c90d56355fa0bbcdd3122f3e376e5609422338b3
Thanks to canavan for his testing and bisecting work
Diffstat (limited to 'engines')
-rw-r--r-- | engines/tinsel/scene.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/engines/tinsel/scene.cpp b/engines/tinsel/scene.cpp index b652e394a0..17cb23b98f 100644 --- a/engines/tinsel/scene.cpp +++ b/engines/tinsel/scene.cpp @@ -130,14 +130,14 @@ const SCENE_STRUC *GetSceneStruc(const byte *pStruc) { const byte *p = pStruc; memset(&g_tempStruc, 0, sizeof(SCENE_STRUC)); - g_tempStruc.numEntrance = FROM_LE_32(READ_32(p)); p += sizeof(uint32); - g_tempStruc.numPoly = FROM_LE_32(READ_32(p)); p += sizeof(uint32); - g_tempStruc.numTaggedActor = FROM_LE_32(READ_32(p)); p += sizeof(uint32); - g_tempStruc.defRefer = FROM_LE_32(READ_32(p)); p += sizeof(uint32); - g_tempStruc.hSceneScript = FROM_LE_32(READ_32(p)); p += sizeof(uint32); - g_tempStruc.hEntrance = FROM_LE_32(READ_32(p)); p += sizeof(uint32); - g_tempStruc.hPoly = FROM_LE_32(READ_32(p)); p += sizeof(uint32); - g_tempStruc.hTaggedActor = FROM_LE_32(READ_32(p)); p += sizeof(uint32); + g_tempStruc.numEntrance = READ_32(p); p += sizeof(uint32); + g_tempStruc.numPoly = READ_32(p); p += sizeof(uint32); + g_tempStruc.numTaggedActor = READ_32(p); p += sizeof(uint32); + g_tempStruc.defRefer = READ_32(p); p += sizeof(uint32); + g_tempStruc.hSceneScript = READ_32(p); p += sizeof(uint32); + g_tempStruc.hEntrance = READ_32(p); p += sizeof(uint32); + g_tempStruc.hPoly = READ_32(p); p += sizeof(uint32); + g_tempStruc.hTaggedActor = READ_32(p); p += sizeof(uint32); return &g_tempStruc; } |