diff options
| author | megamage <none@none> | 2009-09-01 00:17:39 -0500 |
|---|---|---|
| committer | megamage <none@none> | 2009-09-01 00:17:39 -0500 |
| commit | 33a0155281ca0ffb01cf47cddd690249c134ad89 (patch) | |
| tree | bb016d3c03b5aa07a5e212e7e6590685559dc1c6 /src/game/Player.h | |
| parent | 83ea85f9e46bbda023fb5d540c08faa10fc980ed (diff) | |
*Allow pet to have combo points.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.h')
| -rw-r--r-- | src/game/Player.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/game/Player.h b/src/game/Player.h index 31bcadcf3f0..81616f279db 100644 --- a/src/game/Player.h +++ b/src/game/Player.h @@ -2062,7 +2062,12 @@ class MANGOS_DLL_SPEC Player : public Unit void SetClientControl(Unit* target, uint8 allowMove); - void SetMover(Unit* target) { m_mover = target; } + void SetMover(Unit* target) + { + m_mover->m_movedPlayer = NULL; + m_mover = target; + m_mover->m_movedPlayer = this; + } void SetSeer(WorldObject *target) { m_seer = target; } void SetViewpoint(WorldObject *target, bool apply); WorldObject* GetViewpoint() const; |
