cleanup of unselectable items

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@3263 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2008-10-25 19:41:05 +00:00
parent 64e97e12e2
commit f64843dd89
+3 -3
View File
@@ -155,13 +155,13 @@ struct mitemmanual : mitem
virtual void select()
{
if(action && action[0] && strcmp(action, "-1"))
if(action && action[0])
{
int oldstack = menustack.length();
push("arg1", text);
execute(action);
int result = execute(action);
pop("arg1");
if(menustack.length() <= oldstack)
if(result >= 0 && menustack.length() <= oldstack)
{
menuset(NULL, false);
menustack.setsize(0);