Core/Objects: replaced another IsFlying check with CanFly to make sure that hovering creatures will get their ground height returned properly

*also fixed a small typo in path generator
This commit is contained in:
Ovahlord committed 2019-05-06 02:30:24 +02:00
1 parent 7847eb66e0
commit ab95871811
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -2620,7 +2620,7 @@ void WorldObject::MovePositionToFirstCollision(Position &pos, float dist, float
if (Unit const* unit = ToUnit())
{
// flying, ignore.
if (unit->IsFlying())
if (unit->CanFly())
return;
// fall back to gridHeight if any