aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/klists.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/engine/klists.cpp')
-rw-r--r--engines/sci/engine/klists.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/engines/sci/engine/klists.cpp b/engines/sci/engine/klists.cpp
index 6e01768958..25df4bb563 100644
--- a/engines/sci/engine/klists.cpp
+++ b/engines/sci/engine/klists.cpp
@@ -346,8 +346,9 @@ reg_t kDeleteKey(EngineState *s, int argc, reg_t *argv) {
if (!n->succ.isNull())
s->_segMan->lookupNode(n->succ)->pred = n->pred;
- // Erase the node itself, as the game might reference it
- // again before the GC is invoked
+ // Erase the node itself, as the game might reference it again.
+ // Happens in the intro of QFG1 and in Longbow, when exiting the
+ // cave.
n->pred = NULL_REG;
n->succ = NULL_REG;
n->value = NULL_REG;