2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #6481 from Morph1984/missing-peak-set

kernel: Fix missing peak set in KResourceLimit::SetLimitValue
This commit is contained in:
bunnei 2021-06-21 22:16:48 -07:00 committed by GitHub
commit 2a7a65c944
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,6 +79,7 @@ ResultCode KResourceLimit::SetLimitValue(LimitableResource which, s64 value) {
R_UNLESS(current_values[index] <= value, ResultInvalidState); R_UNLESS(current_values[index] <= value, ResultInvalidState);
limit_values[index] = value; limit_values[index] = value;
peak_values[index] = current_values[index];
return ResultSuccess; return ResultSuccess;
} }