Adds coord validity check for job scanning in dig-now

develop
Josh Cooper 2023-02-15 16:16:22 -08:00 committed by Josh Cooper
parent 8beb947c82
commit 249c659006
1 changed files with 3 additions and 0 deletions

@ -86,6 +86,9 @@ public:
df::job_list_link* node = df::global::world->jobs.list.next;
while (node) {
df::job* job = node->item;
if(!Maps::isValidTilePos(job->pos))
continue;
jobs.emplace(job->pos, job);
node = node->next;
df::tile_designation td = map.designationAt(job->pos);