Fix produce() call in modules/Items.cpp

develop
lethosor 2015-12-22 09:46:01 -05:00
parent f6e30efee7
commit 10c72a3d5d
1 changed files with 2 additions and 2 deletions

@ -1366,13 +1366,13 @@ int32_t Items::createItem(df::item_type item_type, int16_t item_subtype, int16_t
}
//makeItem
vector<df::reaction_product*> out_products;
vector<df::item*> out_items;
vector<df::reaction_reagent*> in_reag;
vector<df::item*> in_items;
vector<void*> unk;
df::enums::game_type::game_type type = *df::global::gametype;
prod->produce(unit, &unk, &out_items, &in_reag, &in_items, 1, job_skill::NONE,
prod->produce(unit, &out_products, &out_items, &in_reag, &in_items, 1, job_skill::NONE,
df::historical_entity::find(unit->civ_id),
((type == df::enums::game_type::DWARF_MAIN) || (type == df::enums::game_type::DWARF_RECLAIM)) ? df::world_site::find(df::global::ui->site_id) : NULL);
if ( out_items.size() != 1 )