Use 'contains' method

This commit is contained in:
Dr. Dystopia
2024-07-19 22:49:15 +02:00
parent 5af0ae25e6
commit 618b41a459
31 changed files with 46 additions and 52 deletions

View File

@ -2388,7 +2388,7 @@ void NetPlayClient::RequestGolfControl()
std::string NetPlayClient::GetCurrentGolfer()
{
std::lock_guard lkp(m_crit.players);
if (m_players.count(m_current_golfer))
if (m_players.contains(m_current_golfer))
return m_players[m_current_golfer].name;
return "";
}