diff options
| author | Machiavelli <machiavelli.trinity@gmail.com> | 2011-11-26 15:23:08 +0100 |
|---|---|---|
| committer | Machiavelli <machiavelli.trinity@gmail.com> | 2011-11-26 15:23:08 +0100 |
| commit | a8397c65421dad3181b9a88d6013aa268580d15b (patch) | |
| tree | 297f8f5e0757c613f497a528f87992e9296c83cf /src | |
| parent | d4de58703636721c3e9b873c8e5b16b68497bd52 (diff) | |
| parent | fcd28e5dad0e7f09fa6a75e313f8f698c7ccff35 (diff) | |
Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.x
Conflicts:
src/server/game/Entities/Player/Player.cpp
Diffstat (limited to 'src')
| -rwxr-xr-x | src/server/game/Entities/Player/Player.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/server/game/Entities/Player/Player.cpp b/src/server/game/Entities/Player/Player.cpp index ba7d57df137..524a5943c7f 100755 --- a/src/server/game/Entities/Player/Player.cpp +++ b/src/server/game/Entities/Player/Player.cpp @@ -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); |
