diff --git a/src/common/textures/texture.cpp b/src/common/textures/texture.cpp index 20a8d9776..85b98789b 100644 --- a/src/common/textures/texture.cpp +++ b/src/common/textures/texture.cpp @@ -357,6 +357,7 @@ FTextureBuffer FTexture::CreateTexBuffer(int translation, int flags) memset(buffer, 0, W * (H + 1) * 4); auto remap = translation <= 0 ? nullptr : GPalette.TranslationToTable(translation); + if (remap && remap->Inactive) remap = nullptr; if (remap) translation = remap->Index; FBitmap bmp(buffer, W * 4, W, H);