some inits

This commit is contained in:
Jacek Jendrzej
2021-10-22 14:25:37 +02:00
parent 56274bf320
commit 4a23e0cdf2
4 changed files with 7 additions and 6 deletions

View File

@@ -338,7 +338,7 @@ int CLuaInstMenu::MenuAddItem(lua_State *L)
lua_assert(lua_istable(L, 2));
CMenuItem *mi = NULL;
CLuaMenuItem i;
CLuaMenuItem i = {};
D->items.push_back(i);
CLuaMenuItem *b = &D->items.back();