Skip to content

Commit

Permalink
Fixed support palette flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Robosturm committed Jan 3, 2025
1 parent 318e2da commit eb935c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion game/terrain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ void Terrain::setPalette(const QString & newPalette)
{
m_palette = getDefaultPalette();
}
if (!m_palette.isEmpty())
if (!m_palette.isEmpty() && m_supportPalette)
{
TerrainManager* pTerrainManager = TerrainManager::getInstance();
oxygine::spResAnim pPaletteAnim = pTerrainManager->getSpResAnim(m_palette, oxygine::error_policy::ep_ignore_error);
Expand Down

0 comments on commit eb935c1

Please sign in to comment.