From 82cc4864422630f62bd1a9f39dd0f6a17cf72d3a Mon Sep 17 00:00:00 2001 From: Kelly Kinkade Date: Wed, 15 Feb 2023 06:46:38 -0600 Subject: [PATCH] correct autolabor for structure update df-structures#561 changed def'n of `activity_info` which autolabor used --- plugins/autolabor/autolabor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/autolabor/autolabor.cpp b/plugins/autolabor/autolabor.cpp index 47ff6b0c6..c71b6aa67 100644 --- a/plugins/autolabor/autolabor.cpp +++ b/plugins/autolabor/autolabor.cpp @@ -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) {