summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/mii/types/char_info.cpp
diff options
context:
space:
mode:
authorgerman77 <juangerman-13@hotmail.com>2023-09-17 18:41:57 +0200
committergerman77 <juangerman-13@hotmail.com>2023-09-18 00:06:23 +0200
commit1e8616bd012c91764ed83a6eac3d8334e192af5f (patch)
tree0b3a28c0d01c34fc018a12dd88349ff455fd7e69 /src/core/hle/service/mii/types/char_info.cpp
parentMerge pull request #11529 from lat9nq/no-oob-names-pls (diff)
downloadyuzu-1e8616bd012c91764ed83a6eac3d8334e192af5f.tar
yuzu-1e8616bd012c91764ed83a6eac3d8334e192af5f.tar.gz
yuzu-1e8616bd012c91764ed83a6eac3d8334e192af5f.tar.bz2
yuzu-1e8616bd012c91764ed83a6eac3d8334e192af5f.tar.lz
yuzu-1e8616bd012c91764ed83a6eac3d8334e192af5f.tar.xz
yuzu-1e8616bd012c91764ed83a6eac3d8334e192af5f.tar.zst
yuzu-1e8616bd012c91764ed83a6eac3d8334e192af5f.zip
Diffstat (limited to 'src/core/hle/service/mii/types/char_info.cpp')
-rw-r--r--src/core/hle/service/mii/types/char_info.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/service/mii/types/char_info.cpp b/src/core/hle/service/mii/types/char_info.cpp
index bb948c628..e90124af4 100644
--- a/src/core/hle/service/mii/types/char_info.cpp
+++ b/src/core/hle/service/mii/types/char_info.cpp
@@ -37,7 +37,7 @@ void CharInfo::SetFromStoreData(const StoreData& store_data) {
eyebrow_aspect = store_data.GetEyebrowAspect();
eyebrow_rotate = store_data.GetEyebrowRotate();
eyebrow_x = store_data.GetEyebrowX();
- eyebrow_y = store_data.GetEyebrowY();
+ eyebrow_y = store_data.GetEyebrowY() + 3;
nose_type = store_data.GetNoseType();
nose_scale = store_data.GetNoseScale();
nose_y = store_data.GetNoseY();
@@ -150,7 +150,7 @@ ValidationResult CharInfo::Verify() const {
if (eyebrow_x > MaxEyebrowX) {
return ValidationResult::InvalidEyebrowX;
}
- if (eyebrow_y > MaxEyebrowY) {
+ if (eyebrow_y - 3 > MaxEyebrowY) {
return ValidationResult::InvalidEyebrowY;
}
if (nose_type > NoseType::Max) {
@@ -189,7 +189,7 @@ ValidationResult CharInfo::Verify() const {
if (mustache_scale > MaxMustacheScale) {
return ValidationResult::InvalidMustacheScale;
}
- if (mustache_y > MasMustacheY) {
+ if (mustache_y > MaxMustacheY) {
return ValidationResult::InvalidMustacheY;
}
if (glass_type > GlassType::Max) {