fixed crash when one presses 'escape' from 'advance unit' dialog
This commit is contained in:
parent
603a2a7570
commit
68c077615c
1 changed files with 1 additions and 1 deletions
|
@ -568,7 +568,7 @@ int show_dialog(display& disp, SDL_Surface* image,
|
|||
return ESCAPE_DIALOG;
|
||||
}
|
||||
|
||||
if(!key_down && key[SDLK_ESCAPE]) {
|
||||
if(!key_down && key[SDLK_ESCAPE] && type != OK_ONLY) {
|
||||
|
||||
if(menu_.height() == 0) {
|
||||
return 1;
|
||||
|
|
Loading…
Add table
Reference in a new issue