Skip to content

Commit

Permalink
Fix offset dialog option image with controls preset confirmation (#6502)
Browse files Browse the repository at this point in the history
  • Loading branch information
wookieejedi authored Jan 5, 2025
1 parent 402ca07 commit 65dd3a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/controlconfig/controlsconfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1335,11 +1335,11 @@ bool control_config_accept(bool API_Access)
cfclose(fp);
int n = popup(flags,
2,
POPUP_OK,
POPUP_CANCEL,
POPUP_OK,
"'%s'\n Already exists!\n Press OK to overwrite existing preset, or CANCEL to input another name",
str.c_str());
if ((n == 1) || (n == -1)) {
if ((n == 0) || (n == -1)) {
// If Cancel button was pressed, or popup dismissed:
// retry
gamesnd_play_iface(InterfaceSounds::USER_SELECT);
Expand Down

0 comments on commit 65dd3a7

Please sign in to comment.