Skip to content

Commit

Permalink
[9446] Compile fix in MovementGenerator.cpp
Browse files Browse the repository at this point in the history
Also added few newlines to end of files to satisfy GCC.

Signed-off-by: ApoC <apoc@nymfe.net>
  • Loading branch information
apoc committed Feb 24, 2010
1 parent dc10588 commit 2fc2c97
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion src/game/MovementGenerator.cpp
Expand Up @@ -17,6 +17,7 @@
*/

#include "MovementGenerator.h"
#include "Unit.h"

MovementGenerator::~MovementGenerator()
{
Expand All @@ -27,4 +28,4 @@ bool MovementGenerator::IsActive( Unit& u )
// When movement generator list modified from Update movegen object erase delayed,
// so pointer still valid and be used for check
return !u.GetMotionMaster()->empty() && u.GetMotionMaster()->top() == this;
}
}
1 change: 1 addition & 0 deletions src/game/MovementGenerator.h
Expand Up @@ -124,3 +124,4 @@ typedef FactoryHolder<MovementGenerator,MovementGeneratorType> MovementGenerator
typedef FactoryHolder<MovementGenerator,MovementGeneratorType>::FactoryHolderRegistry MovementGeneratorRegistry;
typedef FactoryHolder<MovementGenerator,MovementGeneratorType>::FactoryHolderRepository MovementGeneratorRepository;
#endif

2 changes: 1 addition & 1 deletion src/game/Spell.cpp
Expand Up @@ -6367,4 +6367,4 @@ WorldObject* Spell::GetCastingObject() const
return m_caster->IsInWorld() ? m_caster->GetMap()->GetGameObject(m_originalCasterGUID) : NULL;
else
return m_caster;
}
}
2 changes: 1 addition & 1 deletion src/game/WaypointMovementGenerator.h
Expand Up @@ -138,4 +138,4 @@ public PathMovementBase<Player>
// allow use for overwrite empty implementation
bool GetDestination(float& x, float& y, float& z) const { return PathMovementBase<Player>::GetDestination(x,y,z); }
};
#endif
#endif
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "9445"
#define REVISION_NR "9446"
#endif // __REVISION_NR_H__

0 comments on commit 2fc2c97

Please sign in to comment.