diff --git a/plugins/autolabor.cpp b/plugins/autolabor.cpp index 60a574ce2..1b442fe2f 100644 --- a/plugins/autolabor.cpp +++ b/plugins/autolabor.cpp @@ -500,7 +500,8 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out ) for (int i = 0; i < world->units.all.size(); ++i) { df::unit* cre = world->units.all[i]; - if (cre->race == race && cre->civ_id == civ && !cre->flags1.bits.marauder && !cre->flags1.bits.diplomat && !cre->flags1.bits.merchant && !cre->flags1.bits.dead) { + if (cre->race == race && cre->civ_id == civ && !cre->flags1.bits.marauder && !cre->flags1.bits.diplomat && !cre->flags1.bits.merchant && + !cre->flags1.bits.dead && !cre->flags1.bits.forest) { dwarfs.push_back(cre); } }