@ -63,7 +63,7 @@ DFHACK_TOOL(dfliquids liquids.cpp)
# Solves the problem of unusable items after reclaim by clearing the 'in_job' bit of all items.
# Original author: Quietust
#DFHACK_TOOL(dfcleartask cleartask.cpp)
DFHACK_TOOL(dfcleartask cleartask.cpp)
# position - check the DF window and cursor parameters
DFHACK_TOOL(dfposition position.cpp)
@ -55,9 +55,9 @@ int main ()
{
DFHack::t_itemflags flags;
flags.whole = p->readDWord(p_items[i] + 0x0C);
if (flags.bits.in_job)
if (flags.in_job)
flags.bits.in_job = 0;
flags.in_job = 0;
p->writeDWord(p_items[i] + 0x0C, flags.whole);
numtasked++;
}