Fix last menu closing bugging out on new rounds.

master
Icedream 2015-04-23 22:18:39 +02:00
parent 21d3019a2d
commit 9b6e651656
1 changed files with 2 additions and 2 deletions

View File

@ -102,11 +102,11 @@ end
hook.Add( "PlayerBindPress", "PlayerBindPressFKeyMenus", function(pl, bind, pressed)
if bind == "gm_showspare2" and pressed then
if lastMenu ~= nil then
if IsValid(lastMenu) and lastMenu ~= nil then
lastMenu:Hide()
end
lastMenu = CreateMenu()
if lastMenu ~= nil then
if IsValid(lastMenu) and lastMenu ~= nil then
lastMenu:Open()
end
end