mirror of
https://github.com/libretro/RetroArch
synced 2025-02-23 15:40:35 +00:00
Merge pull request #9474 from yoshisuga/cheevos_fix_set_sublabel
(cheevos) Fix crash when setting sublabel of achievement
This commit is contained in:
commit
d526530167
@ -735,10 +735,13 @@ static int action_bind_sublabel_cheevos_entry(
|
||||
char *s, size_t len)
|
||||
{
|
||||
#ifdef HAVE_CHEEVOS
|
||||
char fetched_sublabel[MENU_SUBLABEL_MAX_LENGTH];
|
||||
fetched_sublabel[0] = '\0';
|
||||
|
||||
rcheevos_ctx_desc_t desc_info;
|
||||
unsigned new_id = type - MENU_SETTINGS_CHEEVOS_START;
|
||||
desc_info.idx = new_id;
|
||||
desc_info.s = s;
|
||||
desc_info.s = fetched_sublabel;
|
||||
desc_info.len = len;
|
||||
rcheevos_get_description((rcheevos_ctx_desc_t*) &desc_info);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user