1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +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

View File

@@ -1069,7 +1069,7 @@ void CAdvMapInt::keyPressed(const SDL_KeyboardEvent & key)
LOCPLINT->proposeLoadingGame(); LOCPLINT->proposeLoadingGame();
return; return;
case SDLK_s: case SDLK_s:
if(isActive()) if(isActive() && key.type == SDL_KEYUP)
GH.pushInt(new CSavingScreen(CPlayerInterface::howManyPeople > 1)); GH.pushInt(new CSavingScreen(CPlayerInterface::howManyPeople > 1));
return; return;
case SDLK_d: case SDLK_d: