Core: Fix build and a warning

This commit is contained in:
Nay committed 2012-09-08 15:21:44 +01:00
1 parent 242a2fdbc1
commit a55c7f6c84
2 files changed
+3 -3

No files matched your search

@@ -73,7 +73,7 @@ namespace Movement
// there is a big chance that current position is unknown if current state is not finalized, need compute it
// this also allows calculate spline position and update map position in much greater intervals
// Don't compute for transport movement if the unit is in a motion between two transports
if (!move_spline.Finalized() && move_spline.onTransport == transport)
if (!move_spline.Finalized() && move_spline.onTransport == (unit.GetTransGUID() != 0))
real_position = move_spline.ComputePosition();
// should i do the things that user should do? - no.
@@ -83,7 +83,7 @@ namespace Movement
// correct first vertex
args.path[0] = real_position;
args.initialOrientation = real_position.orientation;
move_spline.onTransport = transport;
move_spline.onTransport = (unit.GetTransGUID() != 0);
uint32 moveFlags = unit.m_movementInfo.GetMovementFlags();
if (args.flags.walkmode)