From 5d59ff92d10de309e999094b5cec5c5fb1e2e824 Mon Sep 17 00:00:00 2001 From: Spoike Date: Sun, 19 Jun 2005 09:08:47 +0000 Subject: [PATCH] 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 --- engine/client/m_items.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/engine/client/m_items.c b/engine/client/m_items.c index 103def0d2..f03f9d2d7 100644 --- a/engine/client/m_items.c +++ b/engine/client/m_items.c @@ -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;