menu closing fix

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2742 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-09-24 03:56:45 +00:00
parent e08ac0667b
commit 58fee047f9
+1 -1
View File
@@ -38,7 +38,7 @@ void closemenu(const char *name)
{
gmenu *m = menus.access(name);
if(!m) return;
if(curmenu==m) menuset(NULL);
if(curmenu==m) menuset(menustack.empty() ? NULL : menustack.pop());
else loopv(menustack)
{
if(menustack[i]==m)