Skip to content

Commit

Permalink
Fix #4944
Browse files Browse the repository at this point in the history
  • Loading branch information
Alayan-stk-2 committed Nov 24, 2023
1 parent 2a90327 commit bf88954
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/race/race_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1311,7 +1311,10 @@ core::stringw RaceManager::getDifficultyName(Difficulty diff) const
case RaceManager::DIFFICULTY_MEDIUM: return _("Intermediate"); break;
case RaceManager::DIFFICULTY_HARD: return _("Expert"); break;
case RaceManager::DIFFICULTY_BEST: return _("SuperTux"); break;
default: assert(false);
default: Log::error("RaceManager", "Difficulty level '%u' is unknown.", diff);
// Uncomment to generate a crash and backtrace, if the cause of the
// incorrect difficulty level is unknown (i.e. not online servers' settings)
// assert(false);
}
return "";
} // getDifficultyName

0 comments on commit bf88954

Please sign in to comment.