From 39a4c99468b5f02730f02fb910af12d66e156c67 Mon Sep 17 00:00:00 2001 From: nthirtyone Date: Thu, 6 Oct 2016 13:58:42 +0200 Subject: Fixed music deletion on menu deletion --- menu.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- cgit v1.1