From 43c99a97214406e8558f5501613ec3ca4ad2bf09 Mon Sep 17 00:00:00 2001 From: jaburns Date: Sat, 17 Oct 2020 12:46:38 -0600 Subject: [PATCH] Fix re-alloc surface --- src/load_surfaces.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/load_surfaces.c b/src/load_surfaces.c index 71b2cbc..ca39ee5 100644 --- a/src/load_surfaces.c +++ b/src/load_surfaces.c @@ -70,8 +70,6 @@ static void read_surface_data( struct Surface *surface, int16_t type, int16_t fo ny *= mag; nz *= mag; - surface = malloc(sizeof(struct Surface)); - surface->vertex1[0] = x1; surface->vertex2[0] = x2; surface->vertex3[0] = x3;