Skip to content

Fix wrong size in K_BHeapPush Z_Realloc

JugadorXEI requested to merge JugadorXEI/RingRacers:bheapPushWrongRealloc into master

Fixes K_BHeapPush's Z_Realloc not having a sizeof(bheapitem_t) when it did a realloc. This meant that it would realloc 16, 32... bytes instead of 16/32 * sizeof(bheapitem_t) bytes, causing access violations.

This could cause functions that used K_PathfindAStar to crash, such as the SPB's pathfinding, on some certain cases.

Before:

imagen

After:

imagen

Trivial fix, no build.

Merge request reports

Loading