diff options
author | Treeston <treeston.mmoc@gmail.com> | 2018-04-01 14:20:06 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2021-09-23 22:21:55 +0200 |
commit | 572c16b0170f9b088a536bb32227ba3495b4a362 (patch) | |
tree | 123ae67a8c513fdff977186721c372289ab23f74 /src | |
parent | bc89e1cdb0da10e53cc9fa4a97565c05bb4c052e (diff) |
fb39980 follow-up
(cherry picked from commit 44502bbfff45b01132b9ca4101b26b8a98e56005)
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 271f19e563f..385f9be2cce 100644 --- a/src/server/game/Entities/Object/Position.h +++ b/src/server/game/Entities/Object/Position.h @@ -62,8 +62,8 @@ public: bool operator!=(Position const& a) const { 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; } |