Permalink
Browse files

Core7Movement: Fixed a typo. And cleanup.

  • Loading branch information...
Venugh
Venugh committed Feb 14, 2012
1 parent 994f46f commit 48adc83c32c5ca25194f66e7c01022d8c3ddc116
Showing with 1 addition and 4 deletions.
  1. +1 −4 src/server/game/Movement/MovementGenerators/PointMovementGenerator.cpp
@@ -65,11 +65,8 @@ void PointMovementGenerator<T>::Reset(T &unit)
}
template<class T>
-bool PointMovementGenerator<T>::Update(T &unit, const uint32 &diff)
+bool PointMovementGenerator<T>::Update(T &unit, uint32 const& diff)
{
- if (!&unit)
- return false;
-
if (unit.HasUnitState(UNIT_STATE_ROOT | UNIT_STATE_STUNNED))
{
unit.ClearUnitState(UNIT_STATE_ROAMING_MOVE);

0 comments on commit 48adc83

Please sign in to comment.