Skip to content

Commit

Permalink
Update entitysystem.lua
Browse files Browse the repository at this point in the history
  • Loading branch information
Yozzaxia1311 committed Feb 3, 2021
1 parent d1452c2 commit a04b568
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions core/entitysystem.lua
Original file line number Diff line number Diff line change
Expand Up @@ -577,9 +577,7 @@ function entitySystem:remove(e)
else
for x, xt in pairs(self.hashes) do
for y, yt in pairs(xt) do
if table.icontains(yt.data, e) then
table.quickremovevaluearray(yt.data, e)
end
table.quickremovevaluearray(yt.data, e)

if #yt.data == 0 and not yt.isRemoved then
yt.isRemoved = true
Expand Down

0 comments on commit a04b568

Please sign in to comment.