diff --git a/src/common/textures/formats/pngtexture.cpp b/src/common/textures/formats/pngtexture.cpp index 74474dede6..fcce510d2f 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); }