mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-26 01:42:36 +00:00
Fix the cause of the waypoint debug message spam in Canyon Rush.
Not calling the indexchanged callback here meant that if K_BHeapSortDown didn't make any changes, the item at index 0 would never call the callback despite changing position.
This commit is contained in:
parent
c7a00d4800
commit
87069a86d8
1 changed files with 4 additions and 0 deletions
|
|
@ -469,6 +469,10 @@ boolean K_BHeapPop(bheap_t *const heap, bheapitem_t *const returnitemstorage)
|
|||
heap->array[0] = heap->array[heap->count];
|
||||
heap->array[0].heapindex = 0U;
|
||||
memset(&heap->array[heap->count], 0x00, sizeof(bheapitem_t));
|
||||
if (heap->array[0].indexchanged != NULL)
|
||||
{
|
||||
heap->array[0].indexchanged(heap->array[0].data, heap->array[0].heapindex);
|
||||
}
|
||||
|
||||
K_BHeapSortDown(heap, &heap->array[0]);
|
||||
popsuccess = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue