From bb5369050ed8c64e2c428454899b47ad22d278a8 Mon Sep 17 00:00:00 2001 From: quou Date: Sat, 28 Dec 2024 18:18:44 +1100 Subject: fix pack_close_file --- qstd/pack.c | 1 + 1 file changed, 1 insertion(+) (limited to 'qstd') diff --git a/qstd/pack.c b/qstd/pack.c index e9ca0c3..3006a7d 100644 --- a/qstd/pack.c +++ b/qstd/pack.c @@ -134,6 +134,7 @@ Pack_File* pack_open_file(Pack* p, const char* name) { void pack_close_file(Pack_File* f) { fclose(f->handle); + f->handle = 0; } int pack_read(Pack_File* f, void* buf, int size) { -- cgit v1.2.3-54-g00ecf