Skip to content

Commit

Permalink
NPCBots: Do not error on spline validation if bot speed evaluates to …
Browse files Browse the repository at this point in the history
…zero

(cherry picked from commit 78dcd83d64c24d2ab4a639eb11e93daa2d211301)
  • Loading branch information
trickerer committed Oct 6, 2024
1 parent e58d6a2 commit 85ee7ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Movement/Spline/MoveSplineInit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ namespace Movement
args.velocity = unit->GetSpeed(SelectSpeedType(moveFlagsForSpeed));

//npcbot: do not emit an error if unit cannot move at all
if (!unit->CanFreeMove() && !(args.velocity > 0.01f))
if ((unit->IsNPCBotOrPet() || !unit->CanFreeMove()) && !(args.velocity > 0.01f))
return 0;
//end npcbot
}
Expand Down

0 comments on commit 85ee7ae

Please sign in to comment.