diff options
author | Campbell Barton <ideasman42@gmail.com> | 2011-11-28 01:11:17 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2011-11-28 01:11:17 +0400 |
commit | 1ca7c2e4f3b8dd224782f5c05333fd327d7bc3b3 (patch) | |
tree | 2ce8210bc49150fbac29ef27940ecc645e917d42 /source/blender/blenlib/BLI_mempool.h | |
parent | 8a37378adbb4383de98171608f5dd1e55234359a (diff) |
BLI_mempool_findelem() only worked when no elements were freed, use the iterator for now.
Diffstat (limited to 'source/blender/blenlib/BLI_mempool.h')
-rw-r--r-- | source/blender/blenlib/BLI_mempool.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_mempool.h b/source/blender/blenlib/BLI_mempool.h index a46ba78aef0..77896709285 100644 --- a/source/blender/blenlib/BLI_mempool.h +++ b/source/blender/blenlib/BLI_mempool.h @@ -55,7 +55,7 @@ void *BLI_mempool_calloc(BLI_mempool *pool); void BLI_mempool_free(BLI_mempool *pool, void *addr); void BLI_mempool_destroy(BLI_mempool *pool); int BLI_mempool_count(BLI_mempool *pool); -void *BLI_mempool_findelem(BLI_mempool *pool, const int index); +void *BLI_mempool_findelem(BLI_mempool *pool, int index); /** iteration stuff. note: this may easy to produce bugs with **/ /*private structure*/ |