From 56a0dc8d5fffece2258ff134d06ae69e1da2f54e Mon Sep 17 00:00:00 2001 From: = Date: Thu, 16 Jun 2022 19:01:17 +0300 Subject: [PATCH] Use `clear` in `shash:clear` too --- shash.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/shash.lua b/shash.lua index 1f857cf..ce33a93 100644 --- a/shash.lua +++ b/shash.lua @@ -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