aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-07-22 18:13:05 +0000
committerFilippos Karapetis2010-07-22 18:13:05 +0000
commit50c2fbbb487fac48cfa9e38ae698cb0be6e77cc6 (patch)
tree7124fe89b201e13a4b932255ba3a0b4fc358ca49
parent91e909a25cf056dba37eb6a68bd9ba957cd18175 (diff)
downloadscummvm-rg350-50c2fbbb487fac48cfa9e38ae698cb0be6e77cc6.tar.gz
scummvm-rg350-50c2fbbb487fac48cfa9e38ae698cb0be6e77cc6.tar.bz2
scummvm-rg350-50c2fbbb487fac48cfa9e38ae698cb0be6e77cc6.zip
SCI: Also allow checkListPointer() to check the result of lookupNode() itself
svn-id: r51156
-rw-r--r--engines/sci/engine/klists.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/klists.cpp b/engines/sci/engine/klists.cpp
index cfd68e1264..93e95099f5 100644
--- a/engines/sci/engine/klists.cpp
+++ b/engines/sci/engine/klists.cpp
@@ -75,8 +75,8 @@ static void checkListPointer(SegManager *segMan, reg_t addr) {
// Empty list is fine
} else if (!list->first.isNull() && !list->last.isNull()) {
// Normal list
- Node *node_a = segMan->lookupNode(list->first);
- Node *node_z = segMan->lookupNode(list->last);
+ Node *node_a = segMan->lookupNode(list->first, false);
+ Node *node_z = segMan->lookupNode(list->last, false);
if (!node_a) {
error("checkListPointer (list %04x:%04x): missing first node", PRINT_REG(addr));