fixed crash when one presses 'escape' from 'advance unit' dialog

This commit is contained in:
Dave White 2004-04-24 16:56:55 +00:00
parent 603a2a7570
commit 68c077615c

View file

@ -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;