Skip to content

Commit bef0e25

Browse files
committed
flag check -> function
1 parent f8910a8 commit bef0e25

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fix/feeding-timers.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ end
1717

1818
local fixcount = 0
1919
for _,unit in ipairs(df.global.world.units.all) do
20-
if dfhack.units.isCitizen(unit) and not (unit.flags1.dead) then
20+
if dfhack.units.isCitizen(unit) and isActive(unit) then
2121
for _,v in pairs(unit.status.misc_traits) do
2222
local didfix = 0
2323
if v.id == 0 then -- I think this should have additional conditions...

0 commit comments

Comments
 (0)