aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/game/Unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/Unit.cpp b/src/game/Unit.cpp
index ac1bb5e65af..90d4d6c166a 100644
--- a/src/game/Unit.cpp
+++ b/src/game/Unit.cpp
@@ -14865,7 +14865,7 @@ void Unit::BuildMovementPacket(ByteBuffer *data) const
switch(GetTypeId())
{
case TYPEID_UNIT:
- if(isInFlight())
+ if(canFly())
const_cast<Unit*>(this)->AddUnitMovementFlag(MOVEMENTFLAG_FORWARD | MOVEMENTFLAG_LEVITATING);
break;
case TYPEID_PLAYER: