From b598c5b176d5e93d07a4f669c6cbbc8c8c88c2d9 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 4 Nov 2026 23:47:48 +0000 Subject: [PATCH] Decompile fn_17688 (CWorld::OnProcess) Batch #11077 by cremane: 0 byte-identical, 1 confirmed by peer review. - fn_17688 CWorld::OnProcess: logic confirmed by peer review Peer-reviewed-by: Yommy, dori Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/World/WorldObjects.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/Contents/World/WorldObjects.cpp b/Source/Contents/World/WorldObjects.cpp index 4496c9f5..8825a737 100644 --- a/Source/Contents/World/WorldObjects.cpp +++ b/Source/Contents/World/WorldObjects.cpp @@ -155,12 +155,12 @@ void CWorld::OnProcess() { continue; } - for (auto itemEntry = this->unknown_0018.begin(); itemEntry != this->unknown_0018.end(); ++itemEntry) { - if (*itemEntry == object) { - CItem* item = static_cast(object); - this->RemovePcPos(item->itemAid, true); - this->RemovePcPosForMove(item->itemAid, true); - this->unknown_0018.erase(itemEntry); + for (auto actorEntry = this->actors.begin(); actorEntry != this->actors.end(); ++actorEntry) { + if (*actorEntry == object) { + this->RemovePcPos((*actorEntry)->render.accountId, true); + this->RemovePcPosForMove((*actorEntry)->render.accountId, true); + + this->actors.erase(actorEntry); break; } }