diff options
author | Max Horn | 2003-03-07 21:51:30 +0000 |
---|---|---|
committer | Max Horn | 2003-03-07 21:51:30 +0000 |
commit | 7e86da474d6b443d1db0402b8adf5d4cc1b713cc (patch) | |
tree | 8dcfaac9e39cfea4f4bf157effa151382fb9c747 /scumm/script_v6.cpp | |
parent | 7ad611e710034bc4344b0cdcf50e401fa3fd0d42 (diff) | |
download | scummvm-rg350-7e86da474d6b443d1db0402b8adf5d4cc1b713cc.tar.gz scummvm-rg350-7e86da474d6b443d1db0402b8adf5d4cc1b713cc.tar.bz2 scummvm-rg350-7e86da474d6b443d1db0402b8adf5d4cc1b713cc.zip |
tiny cleanup
svn-id: r6753
Diffstat (limited to 'scumm/script_v6.cpp')
-rw-r--r-- | scumm/script_v6.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v6.cpp b/scumm/script_v6.cpp index 427d21a8cc..6dfca86d33 100644 --- a/scumm/script_v6.cpp +++ b/scumm/script_v6.cpp @@ -2864,7 +2864,7 @@ void Scumm_v6::o6_pickVarRandom() { var_C = READ_LE_UINT16(ptr + 4); } - if ((var_A - 1) < num) { + if (var_A <= num) { int16 var_2 = readArray(value, 0, num - 1); shuffleArray(value, 1, var_A - 1); if (readArray(value, 0, 1) == var_2) { |