mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-19 03:45:43 +00:00
fix(Core/Misc): Change const to be after type name (#10591)
This commit is contained in:
@@ -134,7 +134,7 @@ void WorldSession::HandleQuestgiverAcceptQuestOpcode(WorldPacket& recvData)
|
||||
// pussywizard: exploit fix, can't share quests that give items to be sold
|
||||
if (object->GetTypeId() == TYPEID_PLAYER)
|
||||
if (uint32 itemId = quest->GetSrcItemId())
|
||||
if (const ItemTemplate* srcItem = sObjectMgr->GetItemTemplate(itemId))
|
||||
if (ItemTemplate const* srcItem = sObjectMgr->GetItemTemplate(itemId))
|
||||
if (srcItem->SellPrice > 0)
|
||||
return;
|
||||
|
||||
@@ -470,7 +470,7 @@ void WorldSession::HandleQuestConfirmAccept(WorldPacket& recvData)
|
||||
|
||||
// pussywizard: exploit fix, can't share quests that give items to be sold
|
||||
if (uint32 itemId = quest->GetSrcItemId())
|
||||
if (const ItemTemplate* srcItem = sObjectMgr->GetItemTemplate(itemId))
|
||||
if (ItemTemplate const* srcItem = sObjectMgr->GetItemTemplate(itemId))
|
||||
if (srcItem->SellPrice > 0)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user