From 3def52c1c459f566ab2b2d8cf017c70df4d7cf22 Mon Sep 17 00:00:00 2001 From: Giacomo Pozzoni Date: Sun, 5 Apr 2020 14:28:24 +0200 Subject: Core/Logs: Log full guid instead of just low guid, part 2 --- src/server/game/Guilds/Guild.cpp | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/server/game/Guilds/Guild.cpp') 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)) -- cgit v1.2.3