diff options
author | Chris Apers | 2004-10-21 13:23:52 +0000 |
---|---|---|
committer | Chris Apers | 2004-10-21 13:23:52 +0000 |
commit | feb6b490c15ae8890b6b8fa90c7c315dd9106a60 (patch) | |
tree | 8a491433d3568099d2dbbb8f69c22a5afaad651f | |
parent | 25b70535bebc6fb1957f185a7c4a3d5749e3cee1 (diff) | |
download | scummvm-rg350-feb6b490c15ae8890b6b8fa90c7c315dd9106a60.tar.gz scummvm-rg350-feb6b490c15ae8890b6b8fa90c7c315dd9106a60.tar.bz2 scummvm-rg350-feb6b490c15ae8890b6b8fa90c7c315dd9106a60.zip |
Ooops
svn-id: r15633
-rw-r--r-- | sword1/resman.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sword1/resman.cpp b/sword1/resman.cpp index 2e8e4dfe0c..41665cc5df 100644 --- a/sword1/resman.cpp +++ b/sword1/resman.cpp @@ -308,9 +308,9 @@ void ResMan::openScriptResourceBigEndian(uint32 id) { MemHandle *handle = resHandle(id); // uint32 totSize = handle->size; Header *head = (Header*)handle->data; - head->comp_length = READ_LE_UINT32(&head->comp_length); - head->decomp_length = READ_LE_UINT32(&head->decomp_length); - head->version = READ_LE_UINT16(&head->version); + head->comp_length = FROM_LE_32(head->comp_length); + head->decomp_length = FROM_LE_32(head->decomp_length); + head->version = FROM_LE_16(head->version); uint32 *data = (uint32*)((uint8*)handle->data + sizeof(Header)); uint32 size = handle->size - sizeof(Header); if (size & 3) |