mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 04:13:58 -04:00
Fixed illegal removal. Removed an unused variable
This commit is contained in:
parent
6954b112e9
commit
cc619dae66
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -39,8 +39,9 @@ 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
|
||||||
self.objects[size] = nil
|
self.objects[size] = nil
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue