Fix PositionInfo constructors' members order (#1776)

This commit is contained in:
privatecore
2025-11-02 13:27:25 +01:00
committed by GitHub
parent 12a5132c33
commit f7fea456ca

View File

@@ -15,13 +15,13 @@ class PlayerbotAI;
class PositionInfo class PositionInfo
{ {
public: public:
PositionInfo() : valueSet(false), x(0), y(0), z(0), mapId(0) {} PositionInfo() : x(0), y(0), z(0), mapId(0), valueSet(false) {}
PositionInfo(float x, float y, float z, uint32 mapId, bool valueSet = true) PositionInfo(float x, float y, float z, uint32 mapId, bool valueSet = true)
: valueSet(valueSet), x(x), y(y), z(z), mapId(mapId) : x(x), y(y), z(z), mapId(mapId), valueSet(valueSet)
{ {
} }
PositionInfo(PositionInfo const& other) PositionInfo(PositionInfo const& other)
: valueSet(other.valueSet), x(other.x), y(other.y), z(other.z), mapId(other.mapId) : x(other.x), y(other.y), z(other.z), mapId(other.mapId), valueSet(other.valueSet)
{ {
} }
@@ -41,8 +41,8 @@ public:
float x; float x;
float y; float y;
float z; float z;
bool valueSet;
uint32 mapId; uint32 mapId;
bool valueSet;
}; };
typedef std::map<std::string, PositionInfo> PositionMap; typedef std::map<std::string, PositionInfo> PositionMap;