diff options
Diffstat (limited to 'engines/sci/engine/klists.cpp')
-rw-r--r-- | engines/sci/engine/klists.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/sci/engine/klists.cpp b/engines/sci/engine/klists.cpp index 57b25abff5..af5bfb0d8a 100644 --- a/engines/sci/engine/klists.cpp +++ b/engines/sci/engine/klists.cpp @@ -44,7 +44,7 @@ Node *lookup_node(EngineState *s, reg_t addr) { NodeTable *nt = (NodeTable *)mobj; - if (!ENTRY_IS_VALID(nt, addr.offset)) { + if (!nt->isValidEntry(addr.offset)) { sciprintf("Attempt to use non-node "PREG" as list node\n", PRINT_REG(addr)); script_debug_flag = script_error_flag = 1; return NULL; @@ -64,7 +64,7 @@ List *lookup_list(EngineState *s, reg_t addr) { ListTable *lt = (ListTable *)mobj; - if (!ENTRY_IS_VALID(lt, addr.offset)) { + if (!lt->isValidEntry(addr.offset)) { sciprintf("Attempt to use non-list "PREG" as list\n", PRINT_REG(addr)); script_debug_flag = script_error_flag = 1; return NULL; |