Skip to content

Commit

Permalink
Fix m32 load
Browse files Browse the repository at this point in the history
  • Loading branch information
0lvin committed Dec 31, 2022
1 parent 879808a commit 8b6de3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/files/wal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8b6de3a

Please sign in to comment.