diff options
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
| -rw-r--r-- | src/core/hle/kernel/kernel.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 018000abd..2954f9913 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp | |||
| @@ -37,7 +37,7 @@ Handle ObjectPool::Create(Object* obj, int range_bottom, int range_top) { | |||
| 37 | return 0; | 37 | return 0; |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | bool ObjectPool::IsValid(Handle handle) { | 40 | bool ObjectPool::IsValid(Handle handle) const { |
| 41 | int index = handle - HANDLE_OFFSET; | 41 | int index = handle - HANDLE_OFFSET; |
| 42 | if (index < 0) | 42 | if (index < 0) |
| 43 | return false; | 43 | return false; |
| @@ -75,7 +75,7 @@ void ObjectPool::List() { | |||
| 75 | } | 75 | } |
| 76 | } | 76 | } |
| 77 | 77 | ||
| 78 | int ObjectPool::GetCount() { | 78 | int ObjectPool::GetCount() const { |
| 79 | int count = 0; | 79 | int count = 0; |
| 80 | for (int i = 0; i < MAX_COUNT; i++) { | 80 | for (int i = 0; i < MAX_COUNT; i++) { |
| 81 | if (occupied[i]) | 81 | if (occupied[i]) |