From 26135a175cf94084cb8bc259e0389b33c01086c7 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Wed, 11 Mar 2009 23:47:00 +0000 Subject: Changed a case inside inline_lookup_node() to non-fatal, for now, to make it possible to walk around in SQ4 (check the FIXME comment) svn-id: r39348 --- engines/sci/engine/klists.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engines/sci/engine/klists.cpp b/engines/sci/engine/klists.cpp index ecfd64a88d..a3e0cc0baa 100644 --- a/engines/sci/engine/klists.cpp +++ b/engines/sci/engine/klists.cpp @@ -42,8 +42,11 @@ inline Node *inline_lookup_node(EngineState *s, reg_t addr, const char *file, in mobj = GET_SEGMENT(*s->seg_manager, addr.segment, MEM_OBJ_NODES); if (!mobj) { - sciprintf("%s, L%d: Attempt to use non-node "PREG" as list node\n", __FILE__, __LINE__, PRINT_REG(addr)); - script_debug_flag = script_error_flag = 1; + // FIXME: This occurs right at the beginning of SQ4, when walking north from the first screen. It doesn't + // seem to have any apparent ill-effects, though, so it's been changed to non-fatal, for now + //sciprintf("%s, L%d: Attempt to use non-node "PREG" as list node\n", __FILE__, __LINE__, PRINT_REG(addr)); + //script_debug_flag = script_error_flag = 1; + SCIkwarn(SCIkERROR, "%s, L%d: Attempt to use non-node "PREG" as list node\n", __FILE__, __LINE__, PRINT_REG(addr)); return NULL; } -- cgit v1.2.3