From 57d5e0835fcabfd20d792ef8ff83f9dbfddcc3cd Mon Sep 17 00:00:00 2001 From: Net_ Date: Mon, 10 Jul 2023 17:12:01 -0700 Subject: [PATCH] Fixed GCC template type error. --- Source/SharedLib/Simulation/Public/TileMap/TileMapBase.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/SharedLib/Simulation/Public/TileMap/TileMapBase.h b/Source/SharedLib/Simulation/Public/TileMap/TileMapBase.h index f16de10e..604a11fb 100644 --- a/Source/SharedLib/Simulation/Public/TileMap/TileMapBase.h +++ b/Source/SharedLib/Simulation/Public/TileMap/TileMapBase.h @@ -309,8 +309,7 @@ void TileMapBase::addSnapshotLayersToTile(const TileSnapshot& tileSnapshot, // into the history, and addWall() adds extra walls. Tile& tile{tiles[linearizeTileIndex(tileX, tileY)]}; for (Uint8 paletteIndex : tileSnapshot.layers) { - const T::PaletteEntry& paletteEntry{ - chunkSnapshot.palette[paletteIndex]}; + const auto& paletteEntry{chunkSnapshot.palette[paletteIndex]}; switch (paletteEntry.layerType) { case TileLayer::Type::Floor: {