diff options
author | bunnei <bunneidev@gmail.com> | 2014-08-20 01:01:22 +0200 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2014-08-20 01:01:22 +0200 |
commit | 0db986d92aa06774cf954964cfe5834eac9e09f1 (patch) | |
tree | 7950c5d75d2d3f06e9a10d7d609696c085d07e2e /src/core/hle/kernel/kernel.cpp | |
parent | Merge pull request #59 from lioncash/fwddecl (diff) | |
parent | Core: Use std::array for managing kernel object space (diff) | |
download | yuzu-0db986d92aa06774cf954964cfe5834eac9e09f1.tar yuzu-0db986d92aa06774cf954964cfe5834eac9e09f1.tar.gz yuzu-0db986d92aa06774cf954964cfe5834eac9e09f1.tar.bz2 yuzu-0db986d92aa06774cf954964cfe5834eac9e09f1.tar.lz yuzu-0db986d92aa06774cf954964cfe5834eac9e09f1.tar.xz yuzu-0db986d92aa06774cf954964cfe5834eac9e09f1.tar.zst yuzu-0db986d92aa06774cf954964cfe5834eac9e09f1.zip |
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r-- | src/core/hle/kernel/kernel.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp index 96bc63a53..a4a258875 100644 --- a/src/core/hle/kernel/kernel.cpp +++ b/src/core/hle/kernel/kernel.cpp @@ -17,7 +17,6 @@ Handle g_main_thread = 0; ObjectPool g_object_pool; ObjectPool::ObjectPool() { - memset(occupied, 0, sizeof(bool) * MAX_COUNT); next_id = INITIAL_NEXT_ID; } @@ -57,7 +56,7 @@ void ObjectPool::Clear() { delete pool[i]; occupied[i] = false; } - memset(pool, 0, sizeof(Object*)*MAX_COUNT); + pool.fill(nullptr); next_id = INITIAL_NEXT_ID; } |