Skip to content

Commit f9a2bbf

Browse files
committed
do cheap tests first
1 parent a842c42 commit f9a2bbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugins/lua/dwarfvet.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@ local function get_new_patients(cur_patients)
5959
local new_patients = {}
6060
for _,unit in ipairs(df.global.world.units.active) do
6161
if unit.job.current_job then goto continue end
62-
if cur_patients[unit.id] or not is_valid_animal(unit) then goto continue end
6362
if not unit.health or not unit.health.flags.needs_healthcare then goto continue end
63+
if cur_patients[unit.id] or not is_valid_animal(unit) then goto continue end
6464
new_patients[unit.id] = unit
6565
::continue::
6666
end

0 commit comments

Comments
 (0)