Bugfix: [ 1223487 ] Scripted menus: menubox client crash

allocation size was wrong.


git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1104 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2005-06-19 09:08:47 +00:00
parent 7c4257cc54
commit 5d59ff92d1

View file

@ -513,7 +513,7 @@ menuedit_t *MC_AddEditCvar(menu_t *menu, int x, int y, char *text, char *name)
menubox_t *MC_AddBox(menu_t *menu, int x, int y, int width, int height)
{
menubox_t *n = Z_Malloc(sizeof(menupicture_t));
menubox_t *n = Z_Malloc(sizeof(menubox_t));
n->common.type = mt_box;
n->common.iszone = true;
n->common.posx = x;