diff options
author | Aki <nthirtyone@gmail.com> | 2017-09-08 17:33:28 +0200 |
---|---|---|
committer | Aki <nthirtyone@gmail.com> | 2017-09-08 17:33:28 +0200 |
commit | 4faecfbd6495c46c2d93ce314252feeb7879e568 (patch) | |
tree | 3ab7b92e97223f2276ad3a81d9c8f25fe18f79b7 /not/World.lua | |
parent | 5ef20afaf6a9aca1999faf8904594d94fcfaaa66 (diff) | |
download | roflnauts-4faecfbd6495c46c2d93ce314252feeb7879e568.zip roflnauts-4faecfbd6495c46c2d93ce314252feeb7879e568.tar.gz roflnauts-4faecfbd6495c46c2d93ce314252feeb7879e568.tar.bz2 |
Some additional garbage collecting
Diffstat (limited to 'not/World.lua')
-rw-r--r-- | not/World.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/not/World.lua b/not/World.lua index e8b847a..2774c92 100644 --- a/not/World.lua +++ b/not/World.lua @@ -49,7 +49,11 @@ function World:delete () for _,entity in pairs(self.entities) do entity:delete() end + for _,layer in pairs(self.layers) do + layer:delete() + end self.world:destroy() + collectgarbage() end --- Builds map using one of tables frin config files located in `config/maps/` directory. |