mirror of
https://github.com/Oibaf66/frodo-wii.git
synced 2024-11-22 11:29:24 +01:00
Zero number of entries as well to avoid crashes on free
This commit is contained in:
parent
55064b61cf
commit
5841aa35a3
@ -308,6 +308,7 @@ void Menu::setText(const char **messages, int *submenu_defaults)
|
|||||||
/* Empty messages are allowed */
|
/* Empty messages are allowed */
|
||||||
this->p_submenus = NULL;
|
this->p_submenus = NULL;
|
||||||
this->pp_msgs = NULL;
|
this->pp_msgs = NULL;
|
||||||
|
this->n_entries = 0;
|
||||||
if (!messages)
|
if (!messages)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user