From 1a5eceeb9cb19a3fd9c4d2e5a30412085ba876d4 Mon Sep 17 00:00:00 2001 From: Morph <39850852+Morph1984@users.noreply.github.com> Date: Fri, 18 Jun 2021 07:27:48 -0400 Subject: [PATCH] kernel: Fix missing peak set in KResourceLimit::SetLimitValue --- src/core/hle/kernel/k_resource_limit.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/hle/kernel/k_resource_limit.cpp b/src/core/hle/kernel/k_resource_limit.cpp index da88f35bc6..0c4bba66b4 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; }