summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornthirtyone <nthirtyone@gmail.com>2016-10-06 13:58:42 +0200
committernthirtyone <nthirtyone@gmail.com>2016-10-06 13:58:42 +0200
commit39a4c99468b5f02730f02fb910af12d66e156c67 (patch)
treea68d69acd195f2e3a2b9ba102e6a73f52f1b4b0b
parent92c040a9c0104623b19f8f5d6590a260190b4492 (diff)
downloadroflnauts-39a4c99468b5f02730f02fb910af12d66e156c67.zip
roflnauts-39a4c99468b5f02730f02fb910af12d66e156c67.tar.gz
roflnauts-39a4c99468b5f02730f02fb910af12d66e156c67.tar.bz2
Fixed music deletion on menu deletion
-rw-r--r--menu.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/menu.lua b/menu.lua
index bd04215..7771f39 100644
--- a/menu.lua
+++ b/menu.lua
@@ -40,7 +40,9 @@ function Menu:new(name)
o.music = Music:new("menu.ogg")
return o
end
-function Menu:delete() end
+function Menu:delete()
+ self.music:delete()
+end
-- Load menu from file
function Menu:load(name)