PRIVATE: Fix GCC Compiler Warning

This commit is contained in:
D G Turner 2021-09-15 18:30:55 +01:00
parent 8baac0f52c
commit 858d9cd95a

View File

@ -1279,7 +1279,7 @@ void PrivateEngine::composeImagePalette(Graphics::Surface *surf, const byte *pal
for (i = 0; i < surf->w; i++)
for (j = 0; j < surf->h; j++) {
c = surf->getPixel(i, j);
v = *((uint32*) (palette + 3*c)) & 0x00FFFFFF;
v = *((const uint32*) (palette + 3*c)) & 0x00FFFFFF;
if (_colorToIndex.contains(v))
p = _colorToIndex[v];