@@ -44,8 +44,8 @@ class ClusterList
44
44
, consolidated(true )
45
45
#endif
46
46
{
47
- list = AllocatorNewArrayLeaf (TAllocator, this ->alloc , indexType, maxCount );
48
- for (indextype i = 0 ; i < maxIndex; i++)
47
+ list = AllocatorNewArrayLeaf (TAllocator, this ->alloc , indexType, maxIndex );
48
+ for (indexType i = 0 ; i < maxIndex; i++)
49
49
{
50
50
list[i] = i;
51
51
}
@@ -68,7 +68,7 @@ class ClusterList
68
68
{
69
69
if (this ->list != nullptr )
70
70
{
71
- AllocatorDeleteArrayLeaf (TAllocator, this ->alloc , maxCount , this ->list );
71
+ AllocatorDeleteArrayLeaf (TAllocator, this ->alloc , maxIndex , this ->list );
72
72
this ->list = nullptr ;
73
73
}
74
74
}
@@ -86,7 +86,7 @@ class ClusterList
86
86
// Reset the list; useful if we're re-using the data structure
87
87
void Reset ()
88
88
{
89
- for (indextype i = 0 ; i < maxIndex; i++)
89
+ for (indexType i = 0 ; i < maxIndex; i++)
90
90
{
91
91
list[i] = i;
92
92
}
@@ -313,7 +313,7 @@ class SegmentClusterList
313
313
{
314
314
if (backingStore[i] != nullptr )
315
315
{
316
- AllocatorDeleteArrayLeaf (TAllocator, alloc, numPerSegment, backingstore [i]);
316
+ AllocatorDeleteArrayLeaf (TAllocator, alloc, numPerSegment, backingStore [i]);
317
317
backingStore[i] = nullptr ;
318
318
}
319
319
}
0 commit comments