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)
|
||||
local component = setmetatable({
|
||||
__populate = populate,
|
||||
__inherit = inherit,
|
||||
|
||||
__isComponent = true,
|
||||
}, Component)
|
||||
|
|
|
@ -39,6 +39,7 @@ end
|
|||
-- @return self
|
||||
function List:remove(obj)
|
||||
local index = self.pointers[obj]
|
||||
if not index then return end
|
||||
local size = self.size
|
||||
|
||||
if index == size then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue