Skip to content
Snippets Groups Projects

Fix wrong size in K_BHeapPush Z_Realloc

Merged 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
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading