diff --git a/src/game/WaypointMovementGenerator.cpp b/src/game/WaypointMovementGenerator.cpp index a31afaa5b1..a8ca89d6fe 100644 --- a/src/game/WaypointMovementGenerator.cpp +++ b/src/game/WaypointMovementGenerator.cpp @@ -88,7 +88,7 @@ void WaypointMovementGenerator::InitTraveller(Creature &unit, const Wa // TODO: make this part of waypoint node, so that creature can walk when desired? if (unit.canFly()) - SetByteFlag(UNIT_FIELD_BYTES_1, 3, 0x02); + unit.SetByteFlag(UNIT_FIELD_BYTES_1, 3, 0x02); unit.addUnitState(UNIT_STAT_ROAMING); }