diff options
author | Gregory Montoir | 2004-11-07 16:24:40 +0000 |
---|---|---|
committer | Gregory Montoir | 2004-11-07 16:24:40 +0000 |
commit | 8e4b36cb51562629ffa2eda2f4b8f2fa4fd9bf2f (patch) | |
tree | 748f5199225f292e4c264eb34a3184d68a7ab38c /kyra/resource.cpp | |
parent | 073d0680e1b9ce7cf2de50892ff065716eee3b6f (diff) | |
download | scummvm-rg350-8e4b36cb51562629ffa2eda2f4b8f2fa4fd9bf2f.tar.gz scummvm-rg350-8e4b36cb51562629ffa2eda2f4b8f2fa4fd9bf2f.tar.bz2 scummvm-rg350-8e4b36cb51562629ffa2eda2f4b8f2fa4fd9bf2f.zip |
endianness
svn-id: r15729
Diffstat (limited to 'kyra/resource.cpp')
-rw-r--r-- | kyra/resource.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kyra/resource.cpp b/kyra/resource.cpp index 9e6afd80b8..00b2ede184 100644 --- a/kyra/resource.cpp +++ b/kyra/resource.cpp @@ -199,7 +199,7 @@ namespace Kyra { // works with the file uint32 pos = 0, startoffset = 0, endoffset = 0; - startoffset = *(reinterpret_cast<uint32*>((_buffer + pos))); + startoffset = READ_LE_UINT32(_buffer + pos); pos += 4; while (pos < filesize) { @@ -212,7 +212,7 @@ namespace Kyra { if(!chunk->_name) break; - endoffset = *(reinterpret_cast<uint32*>((_buffer + pos))); + endoffset = READ_LE_UINT32(_buffer + pos); pos += 4; chunk->_data = _buffer + startoffset; |