From ef479bf6e871ba378f68584ccd5ebebceb052bdd Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Sat, 7 Nov 2026 17:53:41 +0000 Subject: [PATCH] Decompile fn_17537 (RenderVertexPool::Acquire) Batch #14758 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_17537 RenderVertexPool::Acquire: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, secret, Tanke, codeplay Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Render/Primitives/RenderVertexPool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Render/Primitives/RenderVertexPool.cpp b/Source/Render/Primitives/RenderVertexPool.cpp index dc4952b21..dd660cc26 100644 --- a/Source/Render/Primitives/RenderVertexPool.cpp +++ b/Source/Render/Primitives/RenderVertexPool.cpp @@ -67,7 +67,7 @@ RenderVertex* RenderVertexPool::Acquire(unsigned count) { } for (auto& block : this->m_active) { - if (block->capacity() - block->size() >= count) { + if (block->size() + count <= block->capacity()) { const unsigned first = static_cast(block->size()); Append(*block, count); this->m_used += count;