From c5ce1b17660254ce1ad9b045ac717b113a001936 Mon Sep 17 00:00:00 2001 From: eamondo2 Date: Mon, 23 Jan 2023 16:20:37 -0500 Subject: [PATCH] Fix build complaints --- plugins/automelt.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/plugins/automelt.cpp b/plugins/automelt.cpp index ba35683c1..e56c79d9f 100644 --- a/plugins/automelt.cpp +++ b/plugins/automelt.cpp @@ -652,10 +652,9 @@ static void automelt_printStatus(color_ostream &out) { marked_item_count = premarked_item_count_piles[id]; } - int32_t stockpile_number = stockpile->stockpile_number; if (stockpile->name.empty()) { string stock_name = "Stockpile #" + int_to_string(stockpile->stockpile_number); - out.print(fmt, name_width, stock_name, monitored ? "[x]": "[ ]", + out.print(fmt, name_width, stock_name.c_str(), monitored ? "[x]": "[ ]", int_to_string(item_count).c_str(), int_to_string(marked_item_count).c_str()); } else { out.print(fmt, name_width, stockpile->name.c_str(), monitored ? "[x]": "[ ]", @@ -803,8 +802,6 @@ static int automelt_getItemCountsAndStockpileConfigs(lua_State *L) { bldg_count++; int id = pile->id; - DEBUG(cycle,*out).print("id=%d\ncount_res=%d\n", id, watched_stockpiles.count(id)); - if (watched_stockpiles.count(id)) { DEBUG(cycle,*out).print("indexed_id=%d\n", get_config_val(watched_stockpiles[id], STOCKPILE_CONFIG_ID)); push_stockpile_config(L, watched_stockpiles[id]);