aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2010-09-05 11:10:49 +0000
committerFilippos Karapetis2010-09-05 11:10:49 +0000
commit047979b4093c376e4cd82da0e2debf43e0de5b91 (patch)
treefd3d65be201479b425bb3cfb3ffe62eba3eff423 /engines
parent913f39da19f3f527b81131844f713097b4a99800 (diff)
downloadscummvm-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.cpp2
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;