diff --git a/src/network/race_config.cpp b/src/network/race_config.cpp index 1351939c7..8f43f8529 100644 --- a/src/network/race_config.cpp +++ b/src/network/race_config.cpp @@ -29,10 +29,10 @@ * \return The key of type S that has the highest second value. */ template -S getHighestInHistogram(std::map* histogram, S default) +S getHighestInHistogram(std::map* histogram, S default_value) { if(histogram->empty()) - return default; + return default_value; S best_item = histogram->begin()->first; uint8_t highest_count = histogram->begin()->second;