Check all depots for trader requested, not just the last one.

develop
Kelly Martin 2012-11-16 13:09:05 -06:00
parent ebf2bf0c14
commit cbe3741751
1 changed files with 1 additions and 1 deletions

@ -964,7 +964,7 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out )
else if (building_type::TradeDepot == type)
{
df::building_tradedepotst* depot = (df::building_tradedepotst*) build;
trader_requested = depot->trade_flags.bits.trader_requested;
trader_requested = trader_requested || depot->trade_flags.bits.trader_requested;
if (print_debug)
{
if (trader_requested)