From 4ac43b357163dcb2d391fbd51936c28d2343430e Mon Sep 17 00:00:00 2001 From: ac_stef Date: Sun, 15 Feb 2009 22:44:56 +0000 Subject: [PATCH] menuitemvar fixed git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4164 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- source/src/menus.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/src/menus.cpp b/source/src/menus.cpp index 0d9fd9c2..7e76e318 100644 --- a/source/src/menus.cpp +++ b/source/src/menus.cpp @@ -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)