aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v72he.cpp
diff options
context:
space:
mode:
authorTravis Howell2005-11-06 11:33:58 +0000
committerTravis Howell2005-11-06 11:33:58 +0000
commitc23723a9fe551fb09ea900ab6e8eb051df80ade2 (patch)
tree9ca5126ee5bb68120cf96a9f46d2b0daef9f285d /scumm/script_v72he.cpp
parentc62d92bd139d7c56532a92db9dcd61fe357a85a8 (diff)
downloadscummvm-rg350-c23723a9fe551fb09ea900ab6e8eb051df80ade2.tar.gz
scummvm-rg350-c23723a9fe551fb09ea900ab6e8eb051df80ade2.tar.bz2
scummvm-rg350-c23723a9fe551fb09ea900ab6e8eb051df80ade2.zip
Should be int32 in HE games, to avoid possible overflow.
svn-id: r19485
Diffstat (limited to 'scumm/script_v72he.cpp')
-rw-r--r--scumm/script_v72he.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scumm/script_v72he.cpp b/scumm/script_v72he.cpp
index 7dde51608c..d3dd4fd9e9 100644
--- a/scumm/script_v72he.cpp
+++ b/scumm/script_v72he.cpp
@@ -1972,7 +1972,7 @@ void ScummEngine_v72he::o72_pickVarRandom() {
dim1end = FROM_LE_32(ah->dim1end);
if (dim1end < num) {
- int16 var_2 = readArray(value, 0, num - 1);
+ int32 var_2 = readArray(value, 0, num - 1);
shuffleArray(value, 1, dim1end);
if (readArray(value, 0, 1) == var_2) {
num = 2;