Merge remote-tracking branch 'BenLubar/autolabor-hauler-crash' into develop

develop
lethosor 2017-07-01 18:05:29 -04:00
commit d7b6f9fd21
1 changed files with 4 additions and 0 deletions

@ -1311,6 +1311,10 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out )
continue; continue;
dwarfs[dwarf]->status.labors[labor] = false; dwarfs[dwarf]->status.labors[labor] = false;
} }
if (dwarf_info[dwarf].state == IDLE || dwarf_info[dwarf].state == BUSY || dwarf_info[dwarf].state == EXCLUSIVE)
{
num_haulers--;
}
continue; continue;
} }