Skip to content

Commit

Permalink
fix/dead-units: check for killed flag
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrikLundell authored and lethosor committed Mar 29, 2018
1 parent 9f2231b commit aee04c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fix/dead-units.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ for i=#units-1,0,-1 do
local unit = units[i]
local flags1 = unit.flags1
local flags2 = unit.flags2
if flags1.dead and unit.race ~= dwarf_race then
if flags1.dead and flags2.killed and unit.race ~= dwarf_race then
local remove = false
if flags2.slaughter then
remove = true
Expand Down

0 comments on commit aee04c4

Please sign in to comment.