fix: arreglos de codi

This commit is contained in:
2025-03-15 19:03:12 +01:00
parent 4343cbae69
commit cad2c40024
6 changed files with 16 additions and 14 deletions

View File

@@ -348,15 +348,15 @@ std::vector<Uint32> Texture::loadPaletteFromFile(const std::string &file_path)
throw std::runtime_error("Error al leer el fichero: " + getFileName(file_path));
}
const auto pal = LoadPalette(buffer.data());
if (!pal)
const auto *PAL = LoadPalette(buffer.data());
if (!PAL)
{
return palette;
}
for (int i = 0; i < 256; ++i)
{
palette.push_back((pal[i] << 8) + 255);
palette.push_back((PAL[i] << 8) + 255);
}
return palette;