(svn r2962) - const correctness for all Get* functions and most Draw* functions that don't change their pointer parameters
- change a lot of byte player types to PlayerID - beautify header files, same "#endif /* filename */" ending
This commit is contained in:
2
pool.h
2
pool.h
@@ -46,7 +46,7 @@ bool AddBlockToPool(MemoryPool *array);
|
||||
*/
|
||||
bool AddBlockIfNeeded(MemoryPool *array, uint index);
|
||||
|
||||
static inline byte *GetItemFromPool(MemoryPool *pool, uint index)
|
||||
static inline byte *GetItemFromPool(const MemoryPool *pool, uint index)
|
||||
{
|
||||
assert(index < pool->total_items);
|
||||
return (pool->blocks[index >> pool->block_size_bits] + (index & ((1 << pool->block_size_bits) - 1)) * pool->item_size);
|
||||
|
||||
Reference in New Issue
Block a user