1
0
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:
ArseniyShestakov 2016-01-28 14:16:52 +03:00
commit 7429403d80

View File

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