Rename ...New/...Free to ...Create/...Destroy
This commit is contained in:
@@ -206,7 +206,7 @@ void render(float dt, void *userData) {
|
||||
|
||||
static PathNode *heap = NULL;
|
||||
if (!heap)
|
||||
heap = bzHeapNew(PathNode, game->map.width * game->map.height);
|
||||
heap = bzHeapCreate(PathNode, game->map.width * game->map.height);
|
||||
game->path.waypoints = game->waypoints;
|
||||
game->path.maxWaypoints = 128;
|
||||
findPath(&(PathfindingDesc) {
|
||||
|
||||
Reference in New Issue
Block a user