]> granicus.if.org Git - poly2tri-c/commitdiff
Add changes according to commit 26242d0aa7b8 in poly2tri (C++)
authorBarak Itkin <lightningismyname@gmail.com>
Sat, 18 May 2013 07:37:29 +0000 (10:37 +0300)
committerBarak Itkin <barakitk@barak-lap-ubuntu-server.(none)>
Sat, 18 May 2013 08:42:22 +0000 (11:42 +0300)
poly2tri-c/p2t/sweep/sweep_context.c

index a2738fde90afd8d7f6487733c357501d91c4efb2..18c278aa7a3b59f7cc67547071d2f15e3fa29324 100644 (file)
@@ -63,6 +63,15 @@ void
 p2t_sweepcontext_init (P2tSweepContext* THIS, P2tPointPtrArray polyline)
 {
   int i;
+
+  THIS->front_ = NULL;
+  THIS->head_ = NULL;
+  THIS->tail_ = NULL;
+
+  THIS->af_head_ = NULL;
+  THIS->af_middle_ = NULL;
+  THIS->af_tail_ = NULL;
+
   THIS->edge_list = g_ptr_array_new ();
   THIS->triangles_ = g_ptr_array_new ();
   THIS->map_ = NULL;