Skip to content

Commit

Permalink
Fix index error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Mar 9, 2024
1 parent 3be690d commit 432478c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3527,7 +3527,7 @@ void LayeredTileMapLayerEditorTerrainsPlugin::_update_tiles_list() {
terrains_tile_list->set_item_metadata(item_index, list_metadata_dict);

terrains_tile_list->add_icon_item(main_vbox_container->get_theme_icon("TerrainPath", "EditorIcons"));
item_index = terrains_tile_list->get_item_count();
item_index = terrains_tile_list->get_item_count() - 1;
terrains_tile_list->set_item_tooltip(item_index, TTR("Path mode: paints a terrain, then connects it to the previous tile painted within the same stroke."));
list_metadata_dict = Dictionary();
list_metadata_dict["type"] = SELECTED_TYPE_PATH;
Expand Down

0 comments on commit 432478c

Please sign in to comment.