correct autolabor for structure update

df-structures#561 changed def'n of `activity_info` which autolabor used
develop
Kelly Kinkade 2023-02-15 06:46:38 -06:00
parent 39f13b642f
commit 82cc486442
1 changed files with 2 additions and 2 deletions

@ -835,8 +835,8 @@ DFhackCExport command_result plugin_onupdate ( color_ostream &out )
for (auto& act : plotinfo->activities)
{
if (!act) continue;
bool p1 = act->unit_actor == dwarfs[dwarf];
bool p2 = act->unit_noble == dwarfs[dwarf];
bool p1 = act->unit_actor == dwarfs[dwarf]->id;
bool p2 = act->unit_noble == dwarfs[dwarf]->id;
if (p1 || p2)
{