diff --git a/src/strategy/values/PositionValue.h b/src/strategy/values/PositionValue.h index 86ed8d09..69e8e359 100644 --- a/src/strategy/values/PositionValue.h +++ b/src/strategy/values/PositionValue.h @@ -15,13 +15,13 @@ class PlayerbotAI; class PositionInfo { 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) - : valueSet(valueSet), x(x), y(y), z(z), mapId(mapId) + : x(x), y(y), z(z), mapId(mapId), valueSet(valueSet) { } 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 y; float z; - bool valueSet; uint32 mapId; + bool valueSet; }; typedef std::map PositionMap;