From d365b71945c8d31fd19b4de638cc26db617fd5a5 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Sat, 7 Aug 2010 16:42:10 +0000 Subject: SCI: Turned a warning into an error svn-id: r51838 --- engines/sci/engine/kpathing.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'engines') diff --git a/engines/sci/engine/kpathing.cpp b/engines/sci/engine/kpathing.cpp index fdebc0599c..07d0a31f0b 100644 --- a/engines/sci/engine/kpathing.cpp +++ b/engines/sci/engine/kpathing.cpp @@ -265,7 +265,8 @@ struct PathfindingState { static Common::Point read_point(SegManager *segMan, reg_t list, int offset) { SegmentRef list_r = segMan->dereference(list); if (!list_r.isValid() || list_r.skipByte) { - warning("read_point(): Attempt to dereference invalid pointer %04x:%04x", PRINT_REG(list)); + // If this happens, then the code below will probably go OOB and crash + error("read_point(): Attempt to dereference invalid pointer %04x:%04x", PRINT_REG(list)); } Common::Point point; -- cgit v1.2.3