Fixed illegal removal. Removed an unused variable

This commit is contained in:
Justin van der Leij 2018-07-30 12:39:01 +02:00
parent 6954b112e9
commit cc619dae66
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,6 @@ Component.__index = Component
function Component.new(populate) function Component.new(populate)
local component = setmetatable({ local component = setmetatable({
__populate = populate, __populate = populate,
__inherit = inherit,
__isComponent = true, __isComponent = true,
}, Component) }, Component)

View file

@ -39,6 +39,7 @@ end
-- @return self -- @return self
function List:remove(obj) function List:remove(obj)
local index = self.pointers[obj] local index = self.pointers[obj]
if not index then return end
local size = self.size local size = self.size
if index == size then if index == size then