[Scummvm-cvs-logs] SF.net SVN: scummvm:[52175] scummvm/trunk/engines/sci/engine/kpathing.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Wed Aug 18 01:11:30 CEST 2010


Revision: 52175
          http://scummvm.svn.sourceforge.net/scummvm/?rev=52175&view=rev
Author:   thebluegr
Date:     2010-08-17 23:11:30 +0000 (Tue, 17 Aug 2010)

Log Message:
-----------
Limited the sanity check in rev #52174 to invalid segment types only (apparently, polygon data may be placed in non-dynmem segments too)

Revision Links:
--------------
    http://scummvm.svn.sourceforge.net/scummvm/?rev=52174&view=rev

Modified Paths:
--------------
    scummvm/trunk/engines/sci/engine/kpathing.cpp

Modified: scummvm/trunk/engines/sci/engine/kpathing.cpp
===================================================================
--- scummvm/trunk/engines/sci/engine/kpathing.cpp	2010-08-17 22:51:24 UTC (rev 52174)
+++ scummvm/trunk/engines/sci/engine/kpathing.cpp	2010-08-17 23:11:30 UTC (rev 52175)
@@ -1109,7 +1109,7 @@
 	// 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++) {


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list