aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/script_lol.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/engines/kyra/script_lol.cpp b/engines/kyra/script_lol.cpp
index 7ffdabc850..1b06c5af5b 100644
--- a/engines/kyra/script_lol.cpp
+++ b/engines/kyra/script_lol.cpp
@@ -1499,6 +1499,14 @@ int LoLEngine::olol_objectLeavesLevel(EMCState *script) {
int includeMonsters = stackPos(3);
int includeItems = stackPos(5);
+ // WORKAROUND for script bug
+ // Items would vanish when thrown towards the stairs
+ // in white tower level 3.
+ if (_currentLevel == 21 && level == 21 && block == 0x3e0) {
+ level = 20;
+ block = 0x0247;
+ }
+
while (o) {
int l = o;
o = findObject(o)->nextAssignedObject;