mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
Merge pull request #177 from vmarkovtsev/issue/2331
Fix 2331 save menu keyboard event leak
This commit is contained in:
commit
7429403d80
@ -1069,7 +1069,7 @@ void CAdvMapInt::keyPressed(const SDL_KeyboardEvent & key)
|
||||
LOCPLINT->proposeLoadingGame();
|
||||
return;
|
||||
case SDLK_s:
|
||||
if(isActive())
|
||||
if(isActive() && key.type == SDL_KEYUP)
|
||||
GH.pushInt(new CSavingScreen(CPlayerInterface::howManyPeople > 1));
|
||||
return;
|
||||
case SDLK_d:
|
||||
|
Loading…
Reference in New Issue
Block a user