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() 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