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).
This commit is contained in:
ragnarok-clanker 2026-11-07 17:53:41 +00:00
commit ef479bf6e8

View file

@ -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<unsigned>(block->size());
Append(*block, count);
this->m_used += count;