From d18e004743f2db8c9d71e5f8f96810f535c6ae6d Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sun, 12 Dec 2021 10:28:17 +0100 Subject: [PATCH] World: Section: fix biome palette size check We were accidentally checking the block type palette size. --- src/World/Section.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/World/Section.cpp b/src/World/Section.cpp index 8d50bca..ffa2789 100644 --- a/src/World/Section.cpp +++ b/src/World/Section.cpp @@ -107,7 +107,7 @@ PaletteSection::PaletteSection( while ((1u << biomeBits) < biomePaletteData->size()) { biomeBits++; - if (bits > 6) + if (biomeBits > 6) throw std::invalid_argument("unsupported biome palette size"); } }