Skip to content

Commit

Permalink
Don't crash the game if an orphaned prompt dialog is closed
Browse files Browse the repository at this point in the history
  • Loading branch information
rollerozxa committed Jul 2, 2024
1 parent a652f22 commit 27e8856
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/src/ui_gtk3.hh
Original file line number Diff line number Diff line change
Expand Up @@ -10241,7 +10241,7 @@ _open_prompt_dialog(gpointer unused)
case PROMPT_RESPONSE_A:
case PROMPT_RESPONSE_B:
case PROMPT_RESPONSE_C:
{
if (G->current_prompt) {
bp = G->current_prompt->get_base_prompt();

if (bp) {
Expand Down

0 comments on commit 27e8856

Please sign in to comment.