From a44f7a72cabd503e530957de3e24610f674da4f9 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 10 Sep 2023 21:31:53 +0200 Subject: [PATCH] - fixed voxel loader --- src/common/models/voxels.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/models/voxels.cpp b/src/common/models/voxels.cpp index 9d2f1fdd6..e5b61bcb6 100644 --- a/src/common/models/voxels.cpp +++ b/src/common/models/voxels.cpp @@ -163,7 +163,7 @@ FVoxel *R_LoadKVX(int lumpnum) auto lump = fileSystem.ReadFile(lumpnum); // FileData adds an extra 0 byte to the end. auto rawvoxel = lump.GetBytes(); - int voxelsize = (int)(lump.GetSize()-1); + int voxelsize = (int)(lump.GetSize()); // Oh, KVX, why couldn't you have a proper header? We'll just go through // and collect each MIP level, doing lots of range checking, and if the