From 3f9e618bcf28181091cae655d0d67cdf2a4d8191 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 7 Nov 2026 05:15:17 +0000 Subject: [PATCH] Decompile fn_20946 (CooldownState::CooldownState) Batch #13970 by SapitoSucio: 0 byte-identical, 1 confirmed by peer review. - fn_20946 CooldownState::CooldownState: logic confirmed by peer review Peer-reviewed-by: Yommy, KWDev, aDw Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/UI/Cooldowns/CooldownState.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/UI/Cooldowns/CooldownState.cpp b/Source/UI/Cooldowns/CooldownState.cpp index 549ad8156..719d10a71 100644 --- a/Source/UI/Cooldowns/CooldownState.cpp +++ b/Source/UI/Cooldowns/CooldownState.cpp @@ -18,6 +18,17 @@ CooldownState::CooldownState(int slotValue, int xValue, int yValue, std::uint32_ : segment(0), vertexCount(24), angle(0), duration(durationValue), start(startValue), elapsed(elapsedValue), finalMinute(0), reverse(reverseValue), x(xValue), y(yValue), slot(slotValue) { this->ClearEdges(); + for (int index = 0; index < 24; ++index) { + RenderVertex& vertex = this->vertices[index]; + vertex.x = 0.0f; + vertex.y = 0.0f; + vertex.z = 0.0f; + vertex.rhw = 0.0f; + vertex.diffuse = 0; + vertex.specular = 0xFF000000; + vertex.u = 0.0f; + vertex.v = 0.0f; + } std::memset(this->vertices, 0, sizeof(this->vertices)); this->color = this->reverse != 0 ? 0xAAFFFFFFu : 0xAA000000u; }