summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel
diff options
context:
space:
mode:
authorGravatar Morph2021-06-18 07:27:48 -0400
committerGravatar Morph2021-06-18 07:27:48 -0400
commit1a5eceeb9cb19a3fd9c4d2e5a30412085ba876d4 (patch)
tree40af1d06f5a968fb857aaaa23c1dcbcc2087b678 /src/core/hle/kernel
parentMerge pull request #6418 from clementgallet/sdl-audio-backend (diff)
downloadyuzu-1a5eceeb9cb19a3fd9c4d2e5a30412085ba876d4.tar.gz
yuzu-1a5eceeb9cb19a3fd9c4d2e5a30412085ba876d4.tar.xz
yuzu-1a5eceeb9cb19a3fd9c4d2e5a30412085ba876d4.zip
kernel: Fix missing peak set in KResourceLimit::SetLimitValue
Diffstat (limited to 'src/core/hle/kernel')
-rw-r--r--src/core/hle/kernel/k_resource_limit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_resource_limit.cpp b/src/core/hle/kernel/k_resource_limit.cpp
index da88f35bc..0c4bba66b 100644
--- a/src/core/hle/kernel/k_resource_limit.cpp
+++ b/src/core/hle/kernel/k_resource_limit.cpp
@@ -79,6 +79,7 @@ ResultCode KResourceLimit::SetLimitValue(LimitableResource which, s64 value) {
79 R_UNLESS(current_values[index] <= value, ResultInvalidState); 79 R_UNLESS(current_values[index] <= value, ResultInvalidState);
80 80
81 limit_values[index] = value; 81 limit_values[index] = value;
82 peak_values[index] = current_values[index];
82 83
83 return ResultSuccess; 84 return ResultSuccess;
84} 85}