diff --git a/Gaming/src/Game.cpp b/Gaming/src/Game.cpp index a0b2067..eb5a98e 100644 --- a/Gaming/src/Game.cpp +++ b/Gaming/src/Game.cpp @@ -181,7 +181,7 @@ void Game::addJoystick(SDL_Event& e) { auto controller = std::make_shared(which); const auto joystickId = controller->getJoystickId(); m_gameControllers[which] = controller; - SDL_assert(m_mappedControllers.find(joystickId) == m_mappedControllers.end()); + SDL_assert(m_mappedControllers.contains(joystickId)); m_mappedControllers[joystickId] = which; SDL_Log("Joystick device %d added (%zd controllers)", which, m_gameControllers.size()); }