Skip to content

Commit

Permalink
Fix small bug in the tweak plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
peterix committed Apr 1, 2013
1 parent b0ee4fe commit 29a2f36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/tweak.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 29a2f36

Please sign in to comment.