mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-10 22:51:57 +00:00
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:
parent
7c4257cc54
commit
5d59ff92d1
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue