From 54a630c3cfcf12cf2e31785f2c89b84a22c2144d Mon Sep 17 00:00:00 2001 From: Rachael Alexanderson Date: Tue, 25 Aug 2020 19:48:25 -0400 Subject: [PATCH] - amend last commit: rename the variable to something slightly more meaningful --- src/common/textures/formats/pngtexture.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/textures/formats/pngtexture.cpp b/src/common/textures/formats/pngtexture.cpp index 74474dede..fcce510d2 100644 --- a/src/common/textures/formats/pngtexture.cpp +++ b/src/common/textures/formats/pngtexture.cpp @@ -360,8 +360,8 @@ void FPNGTexture::ReadAlphaRemap(FileReader *lump, uint8_t *alpharemap) uint8_t r = lump->ReadUInt8(); uint8_t g = lump->ReadUInt8(); uint8_t b = lump->ReadUInt8(); - int ti = PaletteMap ? PaletteMap[i] : i; - alpharemap[i] = ti == 0 ? 0 : Luminance(r, g, b); + int palmap = PaletteMap ? PaletteMap[i] : i; + alpharemap[i] = palmap == 0 ? 0 : Luminance(r, g, b); } lump->Seek(p, FileReader::SeekSet); }