diff --git a/src/k_bot.c b/src/k_bot.c index 4274ef33d..3aacc077a 100644 --- a/src/k_bot.c +++ b/src/k_bot.c @@ -769,7 +769,7 @@ static botprediction_t *K_CreateBotPrediction(player_t *player) distscaled = K_ScaleWPDistWithSlope(disttonext, angletonext, nextslope, P_MobjFlip(wp->mobj)) / FRACUNIT; pathfindsuccess = K_PathfindThruCircuit( - wp, (unsigned)distanceleft, + player->nextwaypoint, (unsigned)distanceleft, &pathtofinish, useshortcuts, huntbackwards );