summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-06-21 22:16:48 -0700
committerGitHub <noreply@github.com>2021-06-21 22:16:48 -0700
commit2a7a65c94448ef23d487deb3e35f329b849a40d9 (patch)
treef05327d7a8c2ffd365a415265896d2d54988f871 /src
parent0485b8e84bacbf7fd56081822faca46114cbeb85 (diff)
parent1a5eceeb9cb19a3fd9c4d2e5a30412085ba876d4 (diff)
Merge pull request #6481 from Morph1984/missing-peak-set
kernel: Fix missing peak set in KResourceLimit::SetLimitValue
Diffstat (limited to 'src')
-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) {
R_UNLESS(current_values[index] <= value, ResultInvalidState);
limit_values[index] = value;
+ peak_values[index] = current_values[index];
return ResultSuccess;
}