Skip to content

Commit

Permalink
cheevos: fix crash entering achievements in quick menu when no client (
Browse files Browse the repository at this point in the history
  • Loading branch information
warmenhoven authored Jan 26, 2025
1 parent c11d9be commit b982ff6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cheevos/cheevos_menu.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ void rcheevos_menu_populate(void* data)
rcheevos_menu_reset_badges();
rcheevos_locals->menuitem_count = 0;

if (rcheevos_locals->client->state.disconnect)
if (rcheevos_locals->client && rcheevos_locals->client->state.disconnect)
{
menu_entries_append(info->list,
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ACHIEVEMENT_SERVER_UNREACHABLE),
Expand Down

0 comments on commit b982ff6

Please sign in to comment.