From 39db9b6c1204b196fa322c4f11dcb6831ea29f88 Mon Sep 17 00:00:00 2001 From: Anna Wiggins Date: Mon, 27 Jun 2011 20:32:29 -0400 Subject: [PATCH] edge collision now works again --- graph.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/graph.cpp b/graph.cpp index 47c23e3..3fcfa02 100644 --- a/graph.cpp +++ b/graph.cpp @@ -70,7 +70,7 @@ bool Graph::crosses_edge(Vertex* a, Vertex* b) for (list::iterator subcursor = v->neighbors.begin(); subcursor != v->neighbors.end(); subcursor++) { - Vertex* w = *cursor; + Vertex* w = *subcursor; if (MathUtils::lines_intersect(a->x, a->y, b->x, b->y, v->x, v->y, w->x, w->y))