diff options
| author | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-06-18 07:27:48 -0400 |
|---|---|---|
| committer | Morph <39850852+Morph1984@users.noreply.github.com> | 2021-06-18 07:27:48 -0400 |
| commit | 3543d654497c56862072b5bcce7a31a55e0f23d7 (patch) | |
| tree | 40af1d06f5a968fb857aaaa23c1dcbcc2087b678 /src/core/hle/kernel/k_resource_limit.cpp | |
| parent | 3e33ea27dcc94e356558ac401976ecd95dfca27e (diff) | |
kernel: Fix missing peak set in KResourceLimit::SetLimitValue
Diffstat (limited to 'src/core/hle/kernel/k_resource_limit.cpp')
| -rw-r--r-- | src/core/hle/kernel/k_resource_limit.cpp | 1 |
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 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; } |
