[Scummvm-cvs-logs] SF.net SVN: scummvm:[53504] scummvm/trunk/engines/sci/engine/kpathing.cpp
thebluegr at users.sourceforge.net
thebluegr at users.sourceforge.net
Fri Oct 15 17:40:36 CEST 2010
Revision: 53504
http://scummvm.svn.sourceforge.net/scummvm/?rev=53504&view=rev
Author: thebluegr
Date: 2010-10-15 15:40:36 +0000 (Fri, 15 Oct 2010)
Log Message:
-----------
SCI: Changed the check for vertex_min into an assert (thanks wjp)
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-10-15 15:23:53 UTC (rev 53503)
+++ scummvm/trunk/engines/sci/engine/kpathing.cpp 2010-10-15 15:40:36 UTC (rev 53504)
@@ -1311,8 +1311,10 @@
}
}
+ assert(vertex_min != 0); // the vertex cost should never be bigger than HUGE_DISTANCE
+
// Check if we are done
- if (vertex_min == s->vertex_end || !vertex_min)
+ if (vertex_min == s->vertex_end)
break;
// Move vertex from set open to set closed
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