fix stupid binds menu bug.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4555 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d75ef8869e
commit
f311eaec54
1 changed files with 1 additions and 1 deletions
|
@ -707,7 +707,7 @@ menutext_t *MC_AddRedText(menu_t *menu, int x, int y, const char *text, qboolean
|
|||
|
||||
menubind_t *MC_AddBind(menu_t *menu, int cx, int bx, int y, const char *caption, char *command)
|
||||
{
|
||||
menubind_t *n = Z_Malloc(sizeof(menutext_t) + strlen(caption)+1 + strlen(command)+1);
|
||||
menubind_t *n = Z_Malloc(sizeof(*n) + strlen(caption)+1 + strlen(command)+1);
|
||||
n->common.type = mt_bind;
|
||||
n->common.iszone = true;
|
||||
n->common.posx = cx;
|
||||
|
|
Loading…
Reference in a new issue