Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
option/controls: fix crash with console cheats
Browse files Browse the repository at this point in the history
Resolves #230.
  • Loading branch information
rr- committed Sep 10, 2024
1 parent 8c7f08c commit c8b0213
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/game/option/option_controls.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ static UI_CONTROLS_CONTROLLER m_ControlsDialogController;

void Option_Controls_Shutdown(void)
{
m_ControlsDialog->free(m_ControlsDialog);
m_ControlsDialog = NULL;
if (m_ControlsDialog != NULL) {
m_ControlsDialog->free(m_ControlsDialog);
m_ControlsDialog = NULL;
}
Input_CheckConflictsWithDefaults();
}

Expand Down

0 comments on commit c8b0213

Please sign in to comment.