Fix Clang Tidy warning

This commit is contained in:
Patricia Aas 2021-10-05 14:48:26 +02:00
parent 443f832a84
commit ebed3ee8f1
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ void Game::processEvents(InputState & inputState) {
return;
}
if (event && event.value().type == sf::Event::KeyPressed && event.value().key.code == sf::Keyboard::A) {
if (sf::Keyboard::isKeyPressed(sf::Keyboard::A)) {
inputState.enableAI = !inputState.enableAI;
}