aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Guilds/Guild.cpp
diff options
context:
space:
mode:
authorleak <leakzx@googlemail.com>2011-01-20 00:08:45 +0100
committerleak <leakzx@googlemail.com>2011-01-20 00:08:45 +0100
commita486eb0c2fcc6bb43693e3c5404f8f82988e2531 (patch)
treeb5603d78e7c95f0ba32d780a002bf440d444460e /src/server/game/Guilds/Guild.cpp
parenta7df9ddff1a4dc24d02e0c28276ff7a5f18dd764 (diff)
SQL: Characters db storage type cleanup No. 5
Diffstat (limited to 'src/server/game/Guilds/Guild.cpp')
-rwxr-xr-xsrc/server/game/Guilds/Guild.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/server/game/Guilds/Guild.cpp b/src/server/game/Guilds/Guild.cpp
index ac27ac289b9..e9fc6c4ec47 100755
--- a/src/server/game/Guilds/Guild.cpp
+++ b/src/server/game/Guilds/Guild.cpp
@@ -718,11 +718,11 @@ inline void Guild::Member::ResetMoneyTime()
// EmblemInfo
void EmblemInfo::LoadFromDB(Field* fields)
{
- m_style = fields[3].GetUInt32();
- m_color = fields[4].GetUInt32();
- m_borderStyle = fields[5].GetUInt32();
- m_borderColor = fields[6].GetUInt32();
- m_backgroundColor = fields[7].GetUInt32();
+ m_style = fields[3].GetUInt8();
+ m_color = fields[4].GetUInt8();
+ m_borderStyle = fields[5].GetUInt8();
+ m_borderColor = fields[6].GetUInt8();
+ m_backgroundColor = fields[7].GetUInt8();
}
void EmblemInfo::WritePacket(WorldPacket& data) const
@@ -1126,7 +1126,7 @@ bool Guild::Create(Player* pLeader, const std::string& name)
stmt->setUInt32(++index, GUID_LOPART(m_leaderGuid));
stmt->setString(++index, m_info);
stmt->setString(++index, m_motd);
- stmt->setUInt64(++index, uint64(m_createdDate));
+ stmt->setUInt64(++index, uint32(m_createdDate));
stmt->setUInt32(++index, m_emblemInfo.GetStyle());
stmt->setUInt32(++index, m_emblemInfo.GetColor());
stmt->setUInt32(++index, m_emblemInfo.GetBorderStyle());
@@ -1840,7 +1840,7 @@ bool Guild::LoadFromDB(Field* fields)
m_emblemInfo.LoadFromDB(fields);
m_info = fields[8].GetString();
m_motd = fields[9].GetString();
- m_createdDate = fields[10].GetUInt64();
+ m_createdDate = time_t(fields[10].GetUInt32());
m_bankMoney = fields[11].GetUInt64();
uint8 purchasedTabs = uint8(fields[12].GetUInt32());
@@ -1932,7 +1932,7 @@ bool Guild::LoadBankEventLogFromDB(Field* fields)
pLog->LoadEvent(new BankEventLogEntry(
m_id, // guild id
guid, // guid
- fields[8].GetUInt64(), // timestamp
+ time_t(fields[8].GetUInt32()), // timestamp
dbTabId, // tab id
eventType, // event type
fields[4].GetUInt32(), // player guid