From d7584fca20d8cc06fcbe17c9d9d544878ef9d93a Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 02:53:53 +0000 Subject: [PATCH] Decompile 9 functions in Source/Contents/JobCodeForItem.cpp Batch #12902 by cremane: 9 byte-identical, 0 confirmed by peer review. - fn_06437 CJobCodeForItem::AddJobGroup: byte-identical - fn_06438 CJobCodeForItem::AddJobGroup: byte-identical - fn_06439 CJobCodeForItem::AddJobGroup: byte-identical - fn_06440 CJobCodeForItem::AddJobGroup: byte-identical - fn_06441 CJobCodeForItem::AddJobGroup: byte-identical - fn_06442 CJobCodeForItem::AddJobGroup: byte-identical - fn_06443 CJobCodeForItem::AddJobGroup: byte-identical - fn_06444 CJobCodeForItem::AddJobGroup: byte-identical - fn_06464 CJobCodeForItem::InitJobGroups: byte-identical (already on main) Merged automatically: every function is byte-identical to the original. --- Source/Contents/JobCodeForItem.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Source/Contents/JobCodeForItem.cpp b/Source/Contents/JobCodeForItem.cpp index 8cb6f2dc..ec322c13 100644 --- a/Source/Contents/JobCodeForItem.cpp +++ b/Source/Contents/JobCodeForItem.cpp @@ -106,13 +106,14 @@ template void CJobCodeForItem::AddJobCode(unsigned long, JobId); template void CJobCodeForItem::AddJobGroup(unsigned int group, Jobs... jobs) { std::set jobSet = {jobs...}; - if (!jobSet.empty()) { - auto it = this->m_jobGroups.find(group); - if (it == this->m_jobGroups.end()) { - this->m_jobGroups[group] = jobSet; - } else { - it->second.merge(jobSet); - } + if (jobSet.empty()) { + return; + } + auto it = this->m_jobGroups.find(group); + if (this->m_jobGroups.end() == it) { + this->m_jobGroups[group] = jobSet; + } else { + it->second.merge(jobSet); } }