From 68cabd0b7cf4f7c3c0d9bbf046d02ddb3e517797 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 05:08:16 +0000 Subject: [PATCH] Confirm fn_02497 (CAsyncWorkMgr::Initialize) Batch #13095 by cremane: 1 byte-identical, 0 confirmed by peer review. - fn_02497 CAsyncWorkMgr::Initialize: byte-identical (already on main) Merged automatically: every function is byte-identical to the original. --- Source/Contents/Async/AsyncWorkMgr.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Contents/Async/AsyncWorkMgr.cpp b/Source/Contents/Async/AsyncWorkMgr.cpp index 3a6ce2dd..5a8bac3b 100644 --- a/Source/Contents/Async/AsyncWorkMgr.cpp +++ b/Source/Contents/Async/AsyncWorkMgr.cpp @@ -21,15 +21,15 @@ CAsyncWorkMgr* g_asyncWorkMgr; // INLINED -CAsyncWorkMgr::CAsyncWorkMgr(std::uint32_t workers) : NAsyncWorkMgr(workers), m_ready(false), m_pools(nullptr) { +CAsyncWorkMgr::CAsyncWorkMgr(std::uint32_t workers) : NAsyncWorkMgr(workers), m_pools(nullptr) { + this->m_ready = false; this->m_pools = new (std::nothrow) CAsyncWorkRecycleObjectPoolMgr; - if (this->m_pools) { - if (this->m_pools->Ready()) { - this->m_ready = true; - } else { + if (!this->m_pools->Ready()) { delete this->m_pools; this->m_pools = nullptr; + } else { + this->m_ready = true; } } }