mirror of
https://github.com/rxi/shash.git
synced 2024-11-24 16:54:34 +00:00
Use clear
in shash:clear
too
This commit is contained in:
parent
9004e35d4a
commit
56a0dc8d5f
@ -171,12 +171,8 @@ end
|
|||||||
|
|
||||||
function shash:clear()
|
function shash:clear()
|
||||||
-- Clear all cells and entities
|
-- Clear all cells and entities
|
||||||
for k in pairs(self.cells) do
|
table_clear(self.cells)
|
||||||
self.cells[k] = nil
|
table_clear(self.entities)
|
||||||
end
|
|
||||||
for k in pairs(self.entities) do
|
|
||||||
self.entities[k] = nil
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user