BLI_stackdefines
[blender.git] / source / blender / bmesh / operators / bmo_removedoubles.c
index a17ab2133c1cb6334954f688f00b58d5be9fdcae..814649c7dbf12423a0c040512772134be1bcf340 100644 (file)
@@ -92,8 +92,8 @@ static void remdoubles_createface(BMesh *bm, BMFace *f, BMOpSlot *slot_targetmap
        STACK_DECLARE(edges);
        STACK_DECLARE(loops);
 
-       STACK_INIT(edges);
-       STACK_INIT(loops);
+       STACK_INIT(edges, f->len);
+       STACK_INIT(loops, f->len);
 
        BM_ITER_ELEM (l, &liter, f, BM_LOOPS_OF_FACE) {
                BMVert *v1 = l->v;