X-Git-Url: https://git.dogcows.com/gitweb?p=chaz%2Frasterize;a=blobdiff_plain;f=scene.c;fp=scene.c;h=326091fea49b0b50e5a42f3d167c0af666f91d3b;hp=be185113988fc11ecc7e840763d22f9aa46c14f8;hb=34efcdbb29b75754fef5066c5999671bc2d2fb12;hpb=aca1bceb5ab7dd87e910f0b8c5dba784ab6e8290 diff --git a/scene.c b/scene.c index be18511..326091f 100644 --- a/scene.c +++ b/scene.c @@ -100,13 +100,13 @@ typedef struct _group _group_t; */ static int _group_try_read_cache(const char* filename, list_t** l) { + int count = 0; char* cachename = mem_strcat(".", filename); FILE* file = fopen(cachename, "rb"); if (file == NULL) { goto fail; } - int count = 0; _CHECK_IO(fread(&count, sizeof(count), 1, file)); float x1, y1, z1, x2, y2, z2, x3, y3, z3;