aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Guilds/Guild.cpp
diff options
context:
space:
mode:
authorGiacomo Pozzoni <giacomopoz@gmail.com>2020-04-05 14:28:24 +0200
committerjackpoz <giacomopoz@gmail.com>2020-04-05 19:10:58 +0200
commit3def52c1c459f566ab2b2d8cf017c70df4d7cf22 (patch)
treec9e6287698915121e2fbe773e76ad8d9357d7f27 /src/server/game/Guilds/Guild.cpp
parent4f88be63e7551288f37e51928614cf14d99b444f (diff)
Core/Logs: Log full guid instead of just low guid, part 2
Diffstat (limited to 'src/server/game/Guilds/Guild.cpp')
-rw-r--r--src/server/game/Guilds/Guild.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/server/game/Guilds/Guild.cpp b/src/server/game/Guilds/Guild.cpp
index 70062312802..f1ffc8d0267 100644
--- a/src/server/game/Guilds/Guild.cpp
+++ b/src/server/game/Guilds/Guild.cpp
@@ -1129,8 +1129,8 @@ bool Guild::Create(Player* pLeader, std::string const& name)
m_createdDate = GameTime::GetGameTime();
_CreateLogHolders();
- TC_LOG_DEBUG("guild", "GUILD: creating guild [%s] for leader %s (%u)",
- name.c_str(), pLeader->GetName().c_str(), m_leaderGuid.GetCounter());
+ TC_LOG_DEBUG("guild", "GUILD: creating guild [%s] for leader %s %s",
+ name.c_str(), pLeader->GetName().c_str(), m_leaderGuid.ToString().c_str());
CharacterDatabaseTransaction trans = CharacterDatabase.BeginTransaction();
@@ -2747,14 +2747,6 @@ void Guild::_MoveItems(MoveItemData* pSrc, MoveItemData* pDest, uint32 splitedAm
// 2. Check source item
if (!pSrc->CheckItem(splitedAmount))
return; // Source item or splited amount is invalid
- /*
- if (pItemSrc->GetCount() == 0)
- {
- TC_LOG_FATAL("guild", "Guild::SwapItems: Player %s(GUIDLow: %u) tried to move item %u from tab %u slot %u to tab %u slot %u, but item %u has a stack of zero!",
- player->GetName(), player->GetGUID().GetCounter(), pItemSrc->GetEntry(), tabId, slotId, destTabId, destSlotId, pItemSrc->GetEntry());
- //return; // Commented out for now, uncomment when it's verified that this causes a crash!!
- }
- // */
// 3. Check destination rights
if (!pDest->HasStoreRights(pSrc))