From 29a2f36e4a466bd9b75cfc8fd5b87a65f7c464d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 1 Apr 2013 17:42:02 +0200 Subject: [PATCH] Fix small bug in the tweak plugin --- plugins/tweak.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/tweak.cpp b/plugins/tweak.cpp index 751de4422..59465b99f 100644 --- a/plugins/tweak.cpp +++ b/plugins/tweak.cpp @@ -702,7 +702,7 @@ static bool can_spar(df::unit *unit) { return unit->counters2.exhaustion <= 2000 && // actually 4000, but leave a gap (unit->status2.limbs_grasp_count > 0 || unit->status2.limbs_grasp_max == 0) && (!unit->health || (unit->health->flags.whole&0x7FF) == 0) && - (!unit->job.current_job || unit->job.current_job != job_type::Rest); + (!unit->job.current_job || unit->job.current_job->job_type != job_type::Rest); } static bool has_spar_inventory(df::unit *unit, df::job_skill skill)