From d8b0b445f3cd0189de5a3cfa92ec68283e9f49d7 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Tue, 17 Aug 2010 23:11:30 +0000 Subject: 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 --- engines/sci/engine/kpathing.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) { -- cgit v1.2.3