diff options
author | Travis Howell | 2010-10-21 05:17:16 +0000 |
---|---|---|
committer | Travis Howell | 2010-10-21 05:17:16 +0000 |
commit | e5c3b67ddb1388282fed1fb8f6f7bfb7ae820f01 (patch) | |
tree | 90aba2e27efc0352a7b38751d880f499a29cd180 /engines/scumm/he | |
parent | 01ea6f86bdc66412836e411dfa0c9f2f4b330907 (diff) | |
download | scummvm-rg350-e5c3b67ddb1388282fed1fb8f6f7bfb7ae820f01.tar.gz scummvm-rg350-e5c3b67ddb1388282fed1fb8f6f7bfb7ae820f01.tar.bz2 scummvm-rg350-e5c3b67ddb1388282fed1fb8f6f7bfb7ae820f01.zip |
SCUMM: Correct a copy and paste error in compareByteArray/compareByteArrayReverse code.
Thanks to clone2727 for noticng this error.
svn-id: r53663
Diffstat (limited to 'engines/scumm/he')
-rw-r--r-- | engines/scumm/he/script_v90he.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/scumm/he/script_v90he.cpp b/engines/scumm/he/script_v90he.cpp index ce621a8ec7..d30804462c 100644 --- a/engines/scumm/he/script_v90he.cpp +++ b/engines/scumm/he/script_v90he.cpp @@ -1952,13 +1952,13 @@ static int sortArrayOffset; static int compareByteArray(const void *a, const void *b) { int va = *((const uint8 *)a + sortArrayOffset); - int vb = *((const uint8 *)a + sortArrayOffset); + int vb = *((const uint8 *)b + sortArrayOffset); return va - vb; } static int compareByteArrayReverse(const void *a, const void *b) { int va = *((const uint8 *)a + sortArrayOffset); - int vb = *((const uint8 *)a + sortArrayOffset); + int vb = *((const uint8 *)b + sortArrayOffset); return vb - va; } |