From 14f163bad19927093bdcf2eeeaf36dd9129833ac Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 23 Aug 2016 14:26:59 +0300 Subject: SCI32: Allow kListAt to reference an empty list Happens in Torin when examining Di's locket in chapter 3 --- engines/sci/engine/klists.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/sci/engine/klists.cpp') diff --git a/engines/sci/engine/klists.cpp b/engines/sci/engine/klists.cpp index 91a0484703..e780d3cdc3 100644 --- a/engines/sci/engine/klists.cpp +++ b/engines/sci/engine/klists.cpp @@ -494,7 +494,7 @@ reg_t kListAt(EngineState *s, int argc, reg_t *argv) { List *list = s->_segMan->lookupList(argv[0]); reg_t curAddress = list->first; if (list->first.isNull()) { - error("kListAt tried to reference empty list (%04x:%04x)", PRINT_REG(argv[0])); + // Happens in Torin when examining Di's locket in chapter 3 return NULL_REG; } Node *curNode = s->_segMan->lookupNode(curAddress); -- cgit v1.2.3