From 3c46bc33aae7783361882e85cb0cb3653af3ede8 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Thu, 28 Jan 2010 20:53:33 +0000 Subject: Disabled the automatic list fixing feature, introduced in rev. #47636 (there's no point in fixing lists created by game scripts) svn-id: r47650 --- engines/sci/engine/klists.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/engines/sci/engine/klists.cpp b/engines/sci/engine/klists.cpp index b58d6c6747..86ddc2a2d0 100644 --- a/engines/sci/engine/klists.cpp +++ b/engines/sci/engine/klists.cpp @@ -44,7 +44,8 @@ static bool isSaneNodePointer(SegManager *segMan, reg_t addr) { warning("isSaneNodePointer: Node at %04x:%04x points to invalid predecessor %04x:%04x (should be %04x:%04x)", PRINT_REG(addr), PRINT_REG(node->pred), PRINT_REG(prev)); - node->pred = prev; // fix the problem in the node + //node->pred = prev; // fix the problem in the node + return false; } prev = addr; @@ -85,7 +86,7 @@ static void checkListPointer(SegManager *segMan, reg_t addr) { warning("isSaneListPointer (list %04x:%04x): First node of the list points to a predecessor node", PRINT_REG(addr)); - node_a->pred = NULL_REG; // fix the problem in the node + //node_a->pred = NULL_REG; // fix the problem in the node return; } @@ -94,7 +95,7 @@ static void checkListPointer(SegManager *segMan, reg_t addr) { warning("isSaneListPointer (list %04x:%04x): Last node of the list points to a successor node", PRINT_REG(addr)); - node_z->succ = NULL_REG; // fix the problem in the node + //node_z->succ = NULL_REG; // fix the problem in the node return; } -- cgit v1.2.3