Skip to content

Commit

Permalink
Fixed issue with debug
Browse files Browse the repository at this point in the history
  • Loading branch information
twist84 committed Sep 30, 2024
1 parent 21d9c5d commit 908bcb7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions game/source/memory/memory_pool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,15 @@ s_memory_pool_block* __cdecl memory_pool_block_get(s_memory_pool const* pool, lo
s_memory_pool_block* block = memory_pool_get_block(pool, sub_969DB0(payload_handle));
//ASSERT(memory_pool_block_valid(pool, block));

s_memory_pool_block* other_block = NULL;
for (other_block = memory_pool_get_block(pool, pool->first_block_handle);
other_block&& block != other_block;
other_block = memory_pool_get_block(pool, other_block->next_block_handle))
{
;
}

ASSERT(other_block);
//s_memory_pool_block* other_block = NULL;
//for (other_block = memory_pool_get_block(pool, pool->first_block_handle);
// other_block && block != other_block;
// other_block = memory_pool_get_block(pool, other_block->next_block_handle))
//{
// ;
//}
//
//ASSERT(other_block);

return block;
}
Expand All @@ -75,7 +75,7 @@ void __cdecl memory_pool_block_free_handle(s_memory_pool* pool, dword payload_ha
//ASSERT(memory_pool_block_valid(pool, block));

pool->free_size += block->size;
ASSERT(pool->free_size <= pool->size);
//ASSERT(pool->free_size <= pool->size);

if (block->previous_block_handle)
memory_pool_get_block(pool, block->previous_block_handle)->next_block_handle = block->next_block_handle;
Expand Down

0 comments on commit 908bcb7

Please sign in to comment.