menuitemvar fixed

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4164 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
ac_stef
2009-02-15 22:44:56 +00:00
parent 4f2cff3626
commit 4ac43b3571
+1 -1
View File
@@ -607,7 +607,7 @@ void menuitemvar(char *eval, char *action, char *hoveraction)
{
if(!lastmenu) return;
char *t = newstring(eval);
lastmenu->items.add(new mitemtextvar(lastmenu, t, newstring(action[0] ? action : NULL), hoveraction[0] ? newstring(hoveraction) : NULL));
lastmenu->items.add(new mitemtextvar(lastmenu, t, action[0] ? newstring(action) : NULL, hoveraction[0] ? newstring(hoveraction) : NULL));
}
void menuitemimage(char *name, char *text, char *action, char *hoveraction)