From 8a5b486441ffb8b7099e1327c3a35765b375be46 Mon Sep 17 00:00:00 2001 From: icedream Date: Thu, 23 Apr 2015 22:14:29 +0200 Subject: [PATCH] Fix last menu not being closed due to wrong variable assignment. --- lua/autorun/client/prophunt_tauntmenu.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/autorun/client/prophunt_tauntmenu.lua b/lua/autorun/client/prophunt_tauntmenu.lua index 5d0bc1d..ec418df 100644 --- a/lua/autorun/client/prophunt_tauntmenu.lua +++ b/lua/autorun/client/prophunt_tauntmenu.lua @@ -105,9 +105,9 @@ hook.Add( "PlayerBindPress", "PlayerBindPressFKeyMenus", function(pl, bind, pres if lastMenu ~= nil then lastMenu:Close() end - local menu = CreateMenu() - if menu ~= nil then - menu:Open() + lastMenu = CreateMenu() + if lastMenu ~= nil then + lastMenu:Open() end end end); \ No newline at end of file