aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/engine/klists.cpp
diff options
context:
space:
mode:
authorFilippos Karapetis2010-06-30 07:34:37 +0000
committerFilippos Karapetis2010-06-30 07:34:37 +0000
commit1e8b74f9de0e3a6cf265376a1c4d2c9859f68c61 (patch)
tree44d79ee28af17c21ab6e76788b7df1030c095274 /engines/sci/engine/klists.cpp
parent7c5b31eb6d6e53a91efb9e0575f07055ea626ed0 (diff)
downloadscummvm-rg350-1e8b74f9de0e3a6cf265376a1c4d2c9859f68c61.tar.gz
scummvm-rg350-1e8b74f9de0e3a6cf265376a1c4d2c9859f68c61.tar.bz2
scummvm-rg350-1e8b74f9de0e3a6cf265376a1c4d2c9859f68c61.zip
Updated incorrect comment
svn-id: r50517
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;