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:
parent
edcd003e2c
commit
ef479bf6e8
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue