From 0cd062833cd9049a1017ab53b985f94803f6355f Mon Sep 17 00:00:00 2001 From: Sally Knight Date: Mon, 23 Mar 2026 02:10:29 +0300 Subject: [PATCH] fix: UB bit shift in Texture.cpp --- Minecraft.Client/Textures/Texture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Minecraft.Client/Textures/Texture.cpp b/Minecraft.Client/Textures/Texture.cpp index d51562c0b..071c891ae 100644 --- a/Minecraft.Client/Textures/Texture.cpp +++ b/Minecraft.Client/Textures/Texture.cpp @@ -130,7 +130,7 @@ void Texture::_init(const std::wstring& name, int mode, int width, int height, if (mipmapped) { for (unsigned int level = 1; level < m_iMipLevels; ++level) { int ww = width >> level; - int hh = height >> height; + int hh = height >> level; byteArray tempBytes = byteArray(ww * hh * depth * 4); for (int index = 0; index < tempBytes.length; index++) {