From 3e02121822e198a8e4ea295d49303f55055c0774 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Mon, 13 Apr 2020 14:55:16 +0200 Subject: [PATCH] - fixed setup of content ID in CreateTexBuffer. --- src/common/textures/texture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/common/textures/texture.cpp b/src/common/textures/texture.cpp index 74e3f2a17..401b61b13 100644 --- a/src/common/textures/texture.cpp +++ b/src/common/textures/texture.cpp @@ -669,6 +669,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) translation = remap->Index; FBitmap bmp(buffer, W * 4, W, H); int trans;