From ac070e49a45b55c638227e8c6e9b4ff3396c2712 Mon Sep 17 00:00:00 2001 From: sv-esk Date: Thu, 11 Feb 2016 02:54:17 +0200 Subject: [PATCH] forbid manipulator editing visitors --- plugins/manipulator.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/manipulator.cpp b/plugins/manipulator.cpp index d3fdeeaf5..067ed1497 100644 --- a/plugins/manipulator.cpp +++ b/plugins/manipulator.cpp @@ -1149,6 +1149,9 @@ viewscreen_unitlaborsst::viewscreen_unitlaborsst(vector &src, int cur if (unit->flags1.bits.dead) cur->allowEdit = false; + if (unit->flags2.bits.visitor) + cur->allowEdit = false; + if (!ENUM_ATTR(profession, can_assign_labor, unit->profession)) cur->allowEdit = false;