From c55fabf3a3ea1c91589b321f9d3a0e0d1c227529 Mon Sep 17 00:00:00 2001 From: Barak Itkin Date: Sat, 18 May 2013 10:37:29 +0300 Subject: [PATCH] Add changes according to commit 26242d0aa7b8 in poly2tri (C++) --- poly2tri-c/p2t/sweep/sweep_context.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/poly2tri-c/p2t/sweep/sweep_context.c b/poly2tri-c/p2t/sweep/sweep_context.c index a2738fd..18c278a 100644 --- a/poly2tri-c/p2t/sweep/sweep_context.c +++ b/poly2tri-c/p2t/sweep/sweep_context.c @@ -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; -- 2.50.1