From ff22dbc16cdc5f01b14fa3383404c7db6255f1c0 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 18 Sep 2021 14:52:19 -0700 Subject: [PATCH] Replacement: Fix a mistake in ZIM texture loading. Fixes #14877. --- Core/TextureReplacer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/TextureReplacer.cpp b/Core/TextureReplacer.cpp index 356228038b..5dd17678ad 100644 --- a/Core/TextureReplacer.cpp +++ b/Core/TextureReplacer.cpp @@ -455,7 +455,7 @@ bool TextureReplacer::PopulateLevel(ReplacedTextureLevel &level) { auto imageType = Identify(fp); if (imageType == ReplacedImageType::ZIM) { fseek(fp, 4, SEEK_SET); - good = good && fread(&level.w, 4, 1, fp) == 1; + good = fread(&level.w, 4, 1, fp) == 1; good = good && fread(&level.h, 4, 1, fp) == 1; int flags; if (good && fread(&flags, 4, 1, fp) == 1) {