aboutsummaryrefslogtreecommitdiff
path: root/scumm/script_v90he.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scumm/script_v90he.cpp')
-rw-r--r--scumm/script_v90he.cpp12
1 files changed, 10 insertions, 2 deletions
diff --git a/scumm/script_v90he.cpp b/scumm/script_v90he.cpp
index 109324a6c2..c9350ff4c6 100644
--- a/scumm/script_v90he.cpp
+++ b/scumm/script_v90he.cpp
@@ -1234,8 +1234,16 @@ void ScummEngine_v90he::o90_setSpriteInfo() {
}
break;
case 105: // HE 99+
- pop();
- pop();
+ args[1] = pop();
+ args[0] = pop();
+ if (_curSpriteId > _curMaxSpriteId)
+ break;
+ spriteId = _curSpriteId;
+ if (!spriteId)
+ spriteId++;
+
+ for (; spriteId <= _curMaxSpriteId; spriteId++)
+ spriteInfoSet_field_88(spriteId, args[0], args[1]);
break;
case 106: // HE 99+
args[0] = pop();