summaryrefslogtreecommitdiff
path: root/plugins/workflow.cpp
diff options
context:
space:
mode:
authorAlexander Gavrilov2012-04-29 21:07:39 +0400
committerAlexander Gavrilov2012-04-29 21:07:39 +0400
commit2303a25bdefab30bea67f32d27d35e5002448e8a (patch)
treed5f8ac14a823a504ad64ae30cc0fa2515f410485 /plugins/workflow.cpp
parent9c94b7c1e748743309dae75ec95e374f26624d5f (diff)
downloaddfhack-2303a25bdefab30bea67f32d27d35e5002448e8a.tar.gz
dfhack-2303a25bdefab30bea67f32d27d35e5002448e8a.tar.bz2
dfhack-2303a25bdefab30bea67f32d27d35e5002448e8a.tar.xz
Implement unconstructed building instance creation and linking into world.
For more flexibility, the base api is split into 3 phases: alloc, setSize, and construct. No support for non-actual buildings like stockpiles and activity zones at the moment.
Diffstat (limited to 'plugins/workflow.cpp')
-rw-r--r--plugins/workflow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/workflow.cpp b/plugins/workflow.cpp
index 5e5ca84b..0d6caa47 100644
--- a/plugins/workflow.cpp
+++ b/plugins/workflow.cpp
@@ -1084,7 +1084,7 @@ static bool itemInRealJob(df::item *item)
return false;
if (item->jobs.size() != 1 ||
- item->jobs[0]->unk1 != 2 ||
+ item->jobs[0]->type != 2 ||
item->jobs[0]->job == NULL)
return true;