Skip to content

Commit

Permalink
Always initialize indices in fill_terrain_sprite_array
Browse files Browse the repository at this point in the history
Silences a warning.

Closes #2063.
  • Loading branch information
lmoureaux committed Nov 27, 2023
1 parent afed2ed commit 2640cfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/tileset/layer_terrain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -956,7 +956,7 @@ void layer_terrain::fill_terrain_sprite_array(
MATCH(iso_dirs[(i + 5) % 6]), // Direction "before"
MATCH(iso_dirs[i])}; // Direction "after"

std::array<int, 2> indices;
std::array<int, 2> indices = {0, 0};
switch (info.style) {
case MATCH_SAME:
fc_assert_ret(info.matches_with.size() == 2);
Expand Down

0 comments on commit 2640cfa

Please sign in to comment.