From 8b6de3a4c15074a3da0908f22ef5aca557520c8e Mon Sep 17 00:00:00 2001 From: Denis Pauk Date: Sat, 31 Dec 2022 16:29:52 +0200 Subject: [PATCH] Fix m32 load --- src/files/wal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/files/wal.c b/src/files/wal.c index eded6ec..402e1e8 100644 --- a/src/files/wal.c +++ b/src/files/wal.c @@ -154,7 +154,7 @@ LoadM32(const char *origname, imagetype_t type, loadimage_t load_image) return NULL; } - if (size < sizeof(m8tex_t)) + if (size < sizeof(m32tex_t)) { R_Printf(PRINT_ALL, "%s: can't load %s, small header\n", __func__, name); ri.FS_FreeFile((void *)mt);