mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-05 20:13:48 +00:00
fix(Core): -Wambiguous-reversed-operator warning (#6864)
This commit is contained in:
@@ -847,7 +847,7 @@ bool Object::PrintIndexError(uint32 index, bool set) const
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Position::operator==(Position const& a)
|
||||
bool Position::operator==(Position const& a) const
|
||||
{
|
||||
return (G3D::fuzzyEq(a.m_positionX, m_positionX) &&
|
||||
G3D::fuzzyEq(a.m_positionY, m_positionY) &&
|
||||
|
||||
@@ -369,7 +369,7 @@ struct Position
|
||||
float m_positionZ = 0;
|
||||
float m_orientation = 0;
|
||||
|
||||
bool operator==(Position const& a);
|
||||
bool operator==(Position const& a) const;
|
||||
|
||||
inline bool operator!=(Position const& a)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user