1
0
Fork 0
forked from fte/fteqw

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:
Spoike 2013-12-04 06:14:10 +00:00
parent d75ef8869e
commit f311eaec54

View file

@ -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 *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.type = mt_bind;
n->common.iszone = true; n->common.iszone = true;
n->common.posx = cx; n->common.posx = cx;