Fix build failure

develop
eamondo2 2023-01-22 04:55:14 -05:00
parent 2e6ba64f56
commit 9bcd9c27bf
1 changed files with 3 additions and 1 deletions

@ -555,7 +555,6 @@ static int32_t do_cycle(color_ostream &out) {
}
static int getSelectedStockpile(color_ostream &out) {
int32_t stock_id = 0;
df::building *selected_bldg = NULL;
selected_bldg = Gui::getSelectedBuilding(out, true);
if (selected_bldg->getType() != df::building_type::Stockpile) {
@ -726,6 +725,8 @@ static int automelt_getSelectedStockpileConfig(lua_State *L){
} else {
push_stockpile_config(L, stock_id, false);
}
return 1;
}
//TODO
@ -783,4 +784,5 @@ DFHACK_PLUGIN_LUA_FUNCTIONS{
DFHACK_PLUGIN_LUA_COMMANDS{
DFHACK_LUA_COMMAND(automelt_getStockpileConfig),
DFHACK_LUA_COMMAND(automelt_getItemCountsAndStockpileConfigs),
DFHACK_LUA_COMMAND(automelt_getSelectedStockpileConfig),
DFHACK_LUA_END};