Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.x
Conflicts: src/server/game/Entities/Player/Player.cpp
This commit is contained in:
@@ -18265,7 +18265,7 @@ void Player::SaveToDB(bool create /*=false*/)
|
||||
stmt->setUInt32(index++, GetUInt32Value(PLAYER_BYTES_2));
|
||||
stmt->setUInt32(index++, GetUInt32Value(PLAYER_FLAGS));
|
||||
stmt->setUInt16(index++, (uint16)GetMapId());
|
||||
stmt->setUInt32(index++ , (uint32)GetInstanceId());
|
||||
stmt->setUInt32(index++, (uint32)GetInstanceId());
|
||||
stmt->setUInt8(index++, (uint8(GetDungeonDifficulty()) | uint8(GetRaidDifficulty()) << 4));
|
||||
stmt->setFloat(index++, finiteAlways(GetPositionX()));
|
||||
stmt->setFloat(index++, finiteAlways(GetPositionY()));
|
||||
@@ -18291,7 +18291,7 @@ void Player::SaveToDB(bool create /*=false*/)
|
||||
stmt->setUInt16(index++, GetZoneId());
|
||||
stmt->setUInt32(index++, m_deathExpireTime);
|
||||
|
||||
ss.str().clear();
|
||||
ss.str("");
|
||||
ss << m_taxi.SaveTaxiDestinationsToString();
|
||||
|
||||
stmt->setString(index++, ss.str());
|
||||
@@ -18313,12 +18313,12 @@ void Player::SaveToDB(bool create /*=false*/)
|
||||
stmt->setUInt8(index++, m_specsCount);
|
||||
stmt->setUInt8(index++, m_activeSpec);
|
||||
|
||||
ss.str().clear();
|
||||
ss.str("");
|
||||
for (uint32 i = 0; i < PLAYER_EXPLORED_ZONES_SIZE; ++i)
|
||||
ss << GetUInt32Value(PLAYER_EXPLORED_ZONES_1 + i) << ' ';
|
||||
stmt->setString(index++, ss.str());
|
||||
|
||||
ss.str().clear();
|
||||
ss.str("");
|
||||
// cache equipment...
|
||||
for (uint32 i = 0; i < EQUIPMENT_SLOT_END * 2; ++i)
|
||||
ss << GetUInt32Value(PLAYER_VISIBLE_ITEM_1_ENTRYID + i) << ' ';
|
||||
@@ -18334,9 +18334,9 @@ void Player::SaveToDB(bool create /*=false*/)
|
||||
}
|
||||
stmt->setString(index++, ss.str());
|
||||
|
||||
ss.str().clear();
|
||||
ss.str("");
|
||||
for (uint32 i = 0; i < KNOWN_TITLES_SIZE*2; ++i)
|
||||
ss << GetUInt32Value(PLAYER__FIELD_KNOWN_TITLES + i);
|
||||
ss << GetUInt32Value(PLAYER__FIELD_KNOWN_TITLES + i) << ' ';
|
||||
stmt->setString(index++, ss.str());
|
||||
|
||||
stmt->setUInt8(index++, GetByteValue(PLAYER_FIELD_BYTES, 2));
|
||||
@@ -18397,7 +18397,7 @@ void Player::SaveToDB(bool create /*=false*/)
|
||||
stmt->setUInt16(index++, GetZoneId());
|
||||
stmt->setUInt32(index++, m_deathExpireTime);
|
||||
|
||||
ss.str().clear();
|
||||
ss.str("");
|
||||
ss << m_taxi.SaveTaxiDestinationsToString();
|
||||
|
||||
stmt->setString(index++, ss.str());
|
||||
@@ -18419,12 +18419,12 @@ void Player::SaveToDB(bool create /*=false*/)
|
||||
stmt->setUInt8(index++, m_specsCount);
|
||||
stmt->setUInt8(index++, m_activeSpec);
|
||||
|
||||
ss.str().clear();
|
||||
ss.str("");
|
||||
for (uint32 i = 0; i < PLAYER_EXPLORED_ZONES_SIZE; ++i)
|
||||
ss << GetUInt32Value(PLAYER_EXPLORED_ZONES_1 + i) << ' ';
|
||||
stmt->setString(index++, ss.str());
|
||||
|
||||
ss.str().clear();
|
||||
ss.str("");
|
||||
// cache equipment...
|
||||
for (uint32 i = 0; i < EQUIPMENT_SLOT_END * 2; ++i)
|
||||
ss << GetUInt32Value(PLAYER_VISIBLE_ITEM_1_ENTRYID + i) << ' ';
|
||||
@@ -18441,7 +18441,7 @@ void Player::SaveToDB(bool create /*=false*/)
|
||||
|
||||
stmt->setString(index++, ss.str());
|
||||
|
||||
ss.str().clear();
|
||||
ss.str("");
|
||||
for (uint32 i = 0; i < KNOWN_TITLES_SIZE*2; ++i)
|
||||
ss << GetUInt32Value(PLAYER__FIELD_KNOWN_TITLES + i);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user