Skip to content

Commit 401beac

Browse files
committed
flag check -> function
1 parent 54de259 commit 401beac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fix/stuck-merchants.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ function dismissMerchants(args)
4545
end
4646
end
4747
for _,u in pairs(df.global.world.units.active) do
48-
if u.flags1.merchant and u.flags1.dead then
48+
if u.flags1.merchant and not dfhack.units.isActive (u) then
4949
print(('%s unit %d: %s (%s), civ %d (%s, %s)'):format(
5050
dry_run and 'Would remove' or 'Removing',
5151
u.id,

0 commit comments

Comments
 (0)