diff options
author | german77 <juangerman-13@hotmail.com> | 2023-09-11 16:53:23 +0200 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2023-09-11 17:54:32 +0200 |
commit | ec25f847d8c066241d3aa9bb00bd11cb0c47b161 (patch) | |
tree | 0fb517718e80499316fcd1994e93355391844af3 /src/core/hle/service/mii/types/core_data.cpp | |
parent | mii: Prepare Interface for new implementation (diff) | |
download | yuzu-ec25f847d8c066241d3aa9bb00bd11cb0c47b161.tar yuzu-ec25f847d8c066241d3aa9bb00bd11cb0c47b161.tar.gz yuzu-ec25f847d8c066241d3aa9bb00bd11cb0c47b161.tar.bz2 yuzu-ec25f847d8c066241d3aa9bb00bd11cb0c47b161.tar.lz yuzu-ec25f847d8c066241d3aa9bb00bd11cb0c47b161.tar.xz yuzu-ec25f847d8c066241d3aa9bb00bd11cb0c47b161.tar.zst yuzu-ec25f847d8c066241d3aa9bb00bd11cb0c47b161.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/mii/types/core_data.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/hle/service/mii/types/core_data.cpp b/src/core/hle/service/mii/types/core_data.cpp index 9d7e604a9..de82481b0 100644 --- a/src/core/hle/service/mii/types/core_data.cpp +++ b/src/core/hle/service/mii/types/core_data.cpp @@ -26,10 +26,10 @@ void CoreData::BuildRandom(Age age, Gender gender, Race race) { data.build.Assign(64); if (age == Age::All) { - const auto temp{MiiUtil::GetRandomValue<int>(10)}; - if (temp >= 8) { + const auto random{MiiUtil::GetRandomValue<int>(10)}; + if (random >= 8) { age = Age::Old; - } else if (temp >= 4) { + } else if (random >= 4) { age = Age::Normal; } else { age = Age::Young; @@ -37,10 +37,10 @@ void CoreData::BuildRandom(Age age, Gender gender, Race race) { } if (race == Race::All) { - const auto temp{MiiUtil::GetRandomValue<int>(10)}; - if (temp >= 8) { + const auto random{MiiUtil::GetRandomValue<int>(10)}; + if (random >= 8) { race = Race::Black; - } else if (temp >= 4) { + } else if (random >= 4) { race = Race::White; } else { race = Race::Asian; |