Core: Fix build

This commit is contained in:
DDuarte
2014-10-24 18:27:16 +01:00
parent b68ccb2e58
commit 6cb52fe4e8
2 changed files with 4 additions and 4 deletions

View File

@@ -18222,7 +18222,7 @@ void Player::_LoadInventory(PreparedQueryResult result, uint32 timeDiff)
{
item->SetSlot(NULL_SLOT);
// Item is in the bag, find the bag
std::map<ObjectGuid, Bag*>::iterator itr = bagMap.find(bagGuid);
std::map<uint32, Bag*>::iterator itr = bagMap.find(bagGuid.GetCounter());
if (itr != bagMap.end())
{
ItemPosCountVec dest;
@@ -18230,9 +18230,9 @@ void Player::_LoadInventory(PreparedQueryResult result, uint32 timeDiff)
if (err == EQUIP_ERR_OK)
item = StoreItem(dest, item, true);
}
else if (invalidBagMap.find(bagGuid) != invalidBagMap.end())
else if (invalidBagMap.find(bagGuid.GetCounter()) != invalidBagMap.end())
{
std::map<uint32, Item*>::iterator itr = invalidBagMap.find(bagGuid);
std::map<uint32, Item*>::iterator itr = invalidBagMap.find(bagGuid.GetCounter());
if (std::find(problematicItems.begin(), problematicItems.end(), itr->second) != problematicItems.end())
err = EQUIP_ERR_INTERNAL_BAG_ERROR;
}

View File

@@ -2442,7 +2442,7 @@ public:
}
// If player found: delete his freeze aura
stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_CHAR_AURA_FROZEN);
PreparedStatement* stmt = CharacterDatabase.GetPreparedStatement(CHAR_DEL_CHAR_AURA_FROZEN);
stmt->setUInt64(0, guid.GetCounter());
CharacterDatabase.Execute(stmt);