From 41bfab1cef151e7bdf64766ac152cdae299727c5 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Thu, 12 Nov 2026 05:17:50 +0000 Subject: [PATCH] Decompile fn_21073 (CreateHallucinationPc) Batch #17871 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_21073 CreateHallucinationPc: logic confirmed by peer review Peer-reviewed-by: Yommy, codeplay, bibinir Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/Actors/GameActor.cpp | 3 +-- Source/Linkage/Source/Contents/Actors/GameActor.cpp.h | 7 +++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 Source/Linkage/Source/Contents/Actors/GameActor.cpp.h diff --git a/Source/Contents/Actors/GameActor.cpp b/Source/Contents/Actors/GameActor.cpp index 46e30454f..b7ccde276 100644 --- a/Source/Contents/Actors/GameActor.cpp +++ b/Source/Contents/Actors/GameActor.cpp @@ -1197,8 +1197,7 @@ void __stdcall CreateHallucinationPc( *reinterpret_cast(argb + 1) = 0xFFFF; argb[0] = 0xFF; - CRenderObject* object = hallu; - static_cast(g_modeMgr.GetGameMode())->scene->objects.push_back(object); + static_cast(g_modeMgr.GetGameMode())->scene->objects.push_back(hallu); delete pc; } diff --git a/Source/Linkage/Source/Contents/Actors/GameActor.cpp.h b/Source/Linkage/Source/Contents/Actors/GameActor.cpp.h new file mode 100644 index 000000000..51efc3fb4 --- /dev/null +++ b/Source/Linkage/Source/Contents/Actors/GameActor.cpp.h @@ -0,0 +1,7 @@ +#pragma once + +#include + +class CRenderObject; + +extern template void std::list::push_back(CRenderObject*&&);