mirror of
https://github.com/mod-playerbots/mod-playerbots
synced 2025-11-29 15:58:20 +08:00
Fix PositionInfo constructors' members order (#1776)
This commit is contained in:
@@ -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<std::string, PositionInfo> PositionMap;
|
||||
|
||||
Reference in New Issue
Block a user