Skip to content

Commit

Permalink
Fixed GCC template type error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Net_ committed Jul 11, 2023
1 parent a0fbf5a commit 57d5e08
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Source/SharedLib/Simulation/Public/TileMap/TileMapBase.h
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

0 comments on commit 57d5e08

Please sign in to comment.