diff options
| author | Shocker <none@none> | 2010-09-13 22:41:32 +0300 |
|---|---|---|
| committer | Shocker <none@none> | 2010-09-13 22:41:32 +0300 |
| commit | de9ed810ef4a8dd24ab54f3bf74a5c5a04c2a7d7 (patch) | |
| tree | 4a42b8e26c8e4c01253d5c57ba03361bc7500965 /src/server/game/Guilds/Guild.cpp | |
| parent | a48923ee8cb7323d010cc8eaa2d8ad172b67160c (diff) | |
Core/Guilds: Fix Guild bank event log for big stacks, fixes issue 3996, thanks maketheking for pointing out the problem
--HG--
branch : trunk
Diffstat (limited to 'src/server/game/Guilds/Guild.cpp')
| -rw-r--r-- | src/server/game/Guilds/Guild.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Guilds/Guild.cpp b/src/server/game/Guilds/Guild.cpp index e3d624c99c6..48dc3ce6437 100644 --- a/src/server/game/Guilds/Guild.cpp +++ b/src/server/game/Guilds/Guild.cpp @@ -1450,7 +1450,7 @@ void Guild::LoadGuildBankEventLogFromDB() NewEvent.EventType = fields[1].GetUInt8(); NewEvent.PlayerGuid = fields[2].GetUInt32(); NewEvent.ItemOrMoney = fields[3].GetUInt32(); - NewEvent.ItemStackCount = fields[4].GetUInt8(); + NewEvent.ItemStackCount = fields[4].GetUInt16(); NewEvent.DestTabId = fields[5].GetUInt8(); NewEvent.TimeStamp = fields[6].GetUInt64(); @@ -1497,7 +1497,7 @@ void Guild::LoadGuildBankEventLogFromDB() NewEvent.EventType = fields[1].GetUInt8(); NewEvent.PlayerGuid = fields[2].GetUInt32(); NewEvent.ItemOrMoney = fields[3].GetUInt32(); - NewEvent.ItemStackCount = fields[4].GetUInt8(); + NewEvent.ItemStackCount = fields[4].GetUInt16(); NewEvent.DestTabId = fields[5].GetUInt8(); NewEvent.TimeStamp = fields[6].GetUInt64(); @@ -1553,7 +1553,7 @@ void Guild::DisplayGuildBankLogs(WorldSession *session, uint8 TabId) sLog.outDebug("WORLD: Sent (MSG_GUILD_BANK_LOG_QUERY)"); } -void Guild::LogBankEvent(SQLTransaction& trans, uint8 EventType, uint8 TabId, uint32 PlayerGuidLow, uint32 ItemOrMoney, uint8 ItemStackCount, uint8 DestTabId) +void Guild::LogBankEvent(SQLTransaction& trans, uint8 EventType, uint8 TabId, uint32 PlayerGuidLow, uint32 ItemOrMoney, uint16 ItemStackCount, uint8 DestTabId) { //create Event GuildBankEventLogEntry NewEvent; |
