diff --git a/iw4/Components/Menus.cpp b/iw4/Components/Menus.cpp index fff46b96..868e3ff4 100644 --- a/iw4/Components/Menus.cpp +++ b/iw4/Components/Menus.cpp @@ -109,7 +109,7 @@ namespace Components Game::menuDef_t* Menus::ParseMenu(int handle) { - Game::menuDef_t* menu = (Game::menuDef_t*)calloc(1, 2048); // FIXME: tentative size + Game::menuDef_t* menu = (Game::menuDef_t*)calloc(1, sizeof(Game::menuDef_t)); menu->items = (Game::itemDef_t**)calloc(512, sizeof(Game::itemDef_t*)); Menus::MenuList.push_back(menu);