aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilippos Karapetis2010-08-07 16:42:10 +0000
committerFilippos Karapetis2010-08-07 16:42:10 +0000
commitd365b71945c8d31fd19b4de638cc26db617fd5a5 (patch)
tree238c549a39aaeca073c167e56843804545bc1e80
parentadc243c5aca723a625d9a6240241a66a421abeb9 (diff)
downloadscummvm-rg350-d365b71945c8d31fd19b4de638cc26db617fd5a5.tar.gz
scummvm-rg350-d365b71945c8d31fd19b4de638cc26db617fd5a5.tar.bz2
scummvm-rg350-d365b71945c8d31fd19b4de638cc26db617fd5a5.zip
SCI: Turned a warning into an error
svn-id: r51838
-rw-r--r--engines/sci/engine/kpathing.cpp3
1 files changed, 2 insertions, 1 deletions
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;