aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v80he.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script_v80he.cpp')
-rw-r--r--scumm/script_v80he.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/scumm/script_v80he.cpp b/scumm/script_v80he.cpp
index 5503c326c0..7c41b3517c 100644
--- a/scumm/script_v80he.cpp
+++ b/scumm/script_v80he.cpp
@@ -795,11 +795,11 @@ void ScummEngine_v80he::o80_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);
num = 1;
if (readArray(value, 0, 1) == var_2 && dim1end >= 3) {
- int16 tmp = readArray(value, 0, 2);
+ int32 tmp = readArray(value, 0, 2);
writeArray(value, 0, num, tmp);
writeArray(value, 0, 2, var_2);
}