diff options
author | Filippos Karapetis | 2010-09-05 11:10:49 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-09-05 11:10:49 +0000 |
commit | 047979b4093c376e4cd82da0e2debf43e0de5b91 (patch) | |
tree | fd3d65be201479b425bb3cfb3ffe62eba3eff423 /engines | |
parent | 913f39da19f3f527b81131844f713097b4a99800 (diff) | |
download | scummvm-rg350-047979b4093c376e4cd82da0e2debf43e0de5b91.tar.gz scummvm-rg350-047979b4093c376e4cd82da0e2debf43e0de5b91.tar.bz2 scummvm-rg350-047979b4093c376e4cd82da0e2debf43e0de5b91.zip |
SCI: Fix for alignment exception issue, reported by Bluddy
svn-id: r52542
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sci/engine/script_patches.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/script_patches.cpp b/engines/sci/engine/script_patches.cpp index 3df7424943..5d7ae49589 100644 --- a/engines/sci/engine/script_patches.cpp +++ b/engines/sci/engine/script_patches.cpp @@ -709,7 +709,7 @@ int32 Script::findSignature(const SciScriptSignature *signature, const byte *scr uint32 DWordOffset = 0; // first search for the magic DWORD while (DWordOffset < searchLimit) { - if (magicDWord == *(const uint32 *)(scriptData + DWordOffset)) { + if (magicDWord == READ_UINT32(scriptData + DWordOffset)) { // magic DWORD found, check if actual signature matches uint32 offset = DWordOffset + signature->magicOffset; uint32 byteOffset = offset; |