aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2010-08-17 23:11:30 +0000
committerFilippos Karapetis2010-08-17 23:11:30 +0000
commitd8b0b445f3cd0189de5a3cfa92ec68283e9f49d7 (patch)
tree9fa593bc562754ea5164e851e15dfbb4d10f0e09 /engines
parent3c010fc2f9542c892c78f3f0df3b32e2b88d6a5d (diff)
downloadscummvm-rg350-d8b0b445f3cd0189de5a3cfa92ec68283e9f49d7.tar.gz
scummvm-rg350-d8b0b445f3cd0189de5a3cfa92ec68283e9f49d7.tar.bz2
scummvm-rg350-d8b0b445f3cd0189de5a3cfa92ec68283e9f49d7.zip
Limited the sanity check in rev #52174 to invalid segment types only (apparently, polygon data may be placed in non-dynmem segments too)
svn-id: r52175
Diffstat (limited to 'engines')
-rw-r--r--engines/sci/engine/kpathing.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/sci/engine/kpathing.cpp b/engines/sci/engine/kpathing.cpp
index 89ba309288..c3657b4b40 100644
--- a/engines/sci/engine/kpathing.cpp
+++ b/engines/sci/engine/kpathing.cpp
@@ -1109,7 +1109,7 @@ static Polygon *convert_polygon(EngineState *s, reg_t polygon) {
// Check if the target polygon is still valid. It may have been released
// in the meantime (e.g. in LSL6, room 700, when using the elevator).
// Refer to bug #3034501.
- if (segMan->getSegmentType(points.segment) != SEG_TYPE_DYNMEM)
+ if (segMan->getSegmentType(points.segment) == SEG_TYPE_INVALID)
return NULL;
for (i = skip; i < size; i++) {