Skip to content

Commit

Permalink
constexpr auto and restore maxNum
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNormalnij authored Nov 5, 2024
1 parent a2d8411 commit c3c86bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Client/core/CNickGen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,9 +196,9 @@ const char* const szNouns[] = {
"Vampire", "Parasite", "Tramp", "Bum", "Hobo", "Hitchhiker", "Deadbeat", "Acrobat",
};

const int numAdjectives = std::size(szAdjectives);
const int numNouns = std::size(szNouns);
const int maxNum = static_cast<int>(RAND_MAX);
constexpr auto numAdjectives = std::size(szAdjectives);
constexpr auto numNouns = std::size(szNouns);
constexpr auto maxNum = 100;

SString CNickGen::GetRandomNickname()
{
Expand Down

0 comments on commit c3c86bf

Please sign in to comment.