|
|
@ -100,12 +100,12 @@ bool Designations::unmarkPlant(const df::plant *plant)
|
|
|
|
auto *next = link->next;
|
|
|
|
auto *next = link->next;
|
|
|
|
df::job *job = link->item;
|
|
|
|
df::job *job = link->item;
|
|
|
|
|
|
|
|
|
|
|
|
if (!job)
|
|
|
|
if (job &&
|
|
|
|
continue;
|
|
|
|
(job->job_type == job_type::FellTree || job->job_type == job_type::GatherPlants) &&
|
|
|
|
if (job->job_type != job_type::FellTree && job->job_type != job_type::GatherPlants)
|
|
|
|
job->pos == plant->pos)
|
|
|
|
continue;
|
|
|
|
{
|
|
|
|
if (job->pos == plant->pos)
|
|
|
|
|
|
|
|
Job::removeJob(job);
|
|
|
|
Job::removeJob(job);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
link = next;
|
|
|
|
link = next;
|
|
|
|
}
|
|
|
|
}
|
|
|
|