diff options
| author | Treeston <treeston.mmoc@gmail.com> | 2018-04-01 14:20:06 +0200 |
|---|---|---|
| committer | Treeston <treeston.mmoc@gmail.com> | 2018-04-01 14:20:06 +0200 |
| commit | 44502bbfff45b01132b9ca4101b26b8a98e56005 (patch) | |
| tree | 1aa6a3f105010f9fa96d5e3c220a5415249f7816 /src | |
| parent | 4692e10ca2ffed5ba2a0336e9c93962b0fad9eaa (diff) | |
fb39980 follow-up
Diffstat (limited to 'src')
| -rw-r--r-- | src/server/game/Entities/Object/Position.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Entities/Object/Position.h b/src/server/game/Entities/Object/Position.h index 17526feb37c..f7e6f1225ba 100644 --- a/src/server/game/Entities/Object/Position.h +++ b/src/server/game/Entities/Object/Position.h @@ -64,8 +64,8 @@ public: bool operator!=(Position const& a) { return !(operator==(a)); } void Relocate(float x, float y) { m_positionX = x; m_positionY = y; } - void Relocate(float x, float y, float z) { m_positionX = x; m_positionY = y; m_positionZ = z; } - void Relocate(float x, float y, float z, float o) { *this = { x,y,z,o }; } + void Relocate(float x, float y, float z) { Relocate(x, y); m_positionZ = z; } + void Relocate(float x, float y, float z, float o) { Relocate(x, y, z); SetOrientation(o); } void Relocate(Position const& pos) { *this = pos; } void Relocate(Position const* pos) { *this = *pos; } |
