summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/hle/kernel/k_resource_limit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_resource_limit.cpp b/src/core/hle/kernel/k_resource_limit.cpp
index 1bcc390ff..3cee8d0f7 100644
--- a/src/core/hle/kernel/k_resource_limit.cpp
+++ b/src/core/hle/kernel/k_resource_limit.cpp
@@ -38,7 +38,7 @@ s64 KResourceLimit::GetCurrentValue(LimitableResource which) const {
38 const auto index = static_cast<std::size_t>(which); 38 const auto index = static_cast<std::size_t>(which);
39 s64 value{}; 39 s64 value{};
40 { 40 {
41 KScopedLightLock lk{m_lock}; 41 KScopedLightLock lk{lock};
42 value = current_values[index]; 42 value = current_values[index];
43 ASSERT(value >= 0); 43 ASSERT(value >= 0);
44 ASSERT(current_values[index] <= limit_values[index]); 44 ASSERT(current_values[index] <= limit_values[index]);