diff options
author | XTZGZoReX <none@none> | 2010-03-19 17:24:23 +0100 |
---|---|---|
committer | XTZGZoReX <none@none> | 2010-03-19 17:24:23 +0100 |
commit | bb99135e408118e960430458dc1e509a4076fa9b (patch) | |
tree | 42debcc05f542f3c8c3799e0b8c6d1c75748f718 /src/game/Guild.cpp | |
parent | 31608cfb723581582dbcfb6a146dc21dc1b21614 (diff) |
* Minor cleanups/comments in regards to SMSG_GUILD_INFO.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Guild.cpp')
-rw-r--r-- | src/game/Guild.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/game/Guild.cpp b/src/game/Guild.cpp index 8e983320522..8e0379904fb 100644 --- a/src/game/Guild.cpp +++ b/src/game/Guild.cpp @@ -44,13 +44,14 @@ Guild::Guild() m_BorderColor = 0; m_BackgroundColor = 0; - m_CreatedDate = time(NULL); + m_CreatedDate = 0; m_GuildBankMoney = 0; m_PurchasedTabs = 0; m_GuildEventLogNextGuid = 0; m_GuildBankEventLogNextGuid_Money = 0; + for (uint8 i = 0; i < GUILD_BANK_MAX_TABS; ++i) m_GuildBankEventLogNextGuid_Item[i] = 0; } @@ -222,16 +223,13 @@ bool Guild::LoadGuildFromDB(QueryResult_AutoPtr guildDataResult) m_BackgroundColor = fields[7].GetUInt32(); GINFO = fields[8].GetCppString(); MOTD = fields[9].GetCppString(); - time_t time = fields[10].GetUInt64(); + m_CreatedDate = fields[10].GetUInt64(); m_GuildBankMoney = fields[11].GetUInt64(); m_PurchasedTabs = fields[12].GetUInt32(); if (m_PurchasedTabs > GUILD_BANK_MAX_TABS) m_PurchasedTabs = GUILD_BANK_MAX_TABS; - if (time > 0) - m_CreatedDate = time; - return true; } |