aboutsummaryrefslogtreecommitdiffstats
path: root/src/mem_pool.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem_pool.cpp')
-rw-r--r--src/mem_pool.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mem_pool.cpp b/src/mem_pool.cpp
index 24866d172..e327b3473 100644
--- a/src/mem_pool.cpp
+++ b/src/mem_pool.cpp
@@ -244,16 +244,16 @@ byte* Pooling_Allocator::allocate_blocks(u32bit n)
do
{
- ++i;
- if(i == blocks.end())
- i = blocks.begin();
-
byte* mem = i->alloc(n);
if(mem)
{
last_used = i;
return mem;
}
+
+ ++i;
+ if(i == blocks.end())
+ i = blocks.begin();
}
while(i != last_used);