Use clear in shash:clear too

This commit is contained in:
= 2022-06-16 19:01:17 +03:00
parent 9004e35d4a
commit 56a0dc8d5f

View File

@ -171,12 +171,8 @@ end
function shash:clear()
-- Clear all cells and entities
for k in pairs(self.cells) do
self.cells[k] = nil
end
for k in pairs(self.entities) do
self.entities[k] = nil
end
table_clear(self.cells)
table_clear(self.entities)
end