mirror of
https://github.com/mangosfour/server.git
synced 2025-12-27 19:37:04 +00:00
[11464] Some item related guids convertion to ObjectGuids
This commit is contained in:
parent
4181b8f28b
commit
a925db80fa
8 changed files with 45 additions and 38 deletions
|
|
@ -225,11 +225,11 @@ uint32 Bag::GetItemCountWithLimitCategory(uint32 limitCategory, Item* eItem) con
|
|||
return count;
|
||||
}
|
||||
|
||||
uint8 Bag::GetSlotByItemGUID(uint64 guid) const
|
||||
uint8 Bag::GetSlotByItemGUID(ObjectGuid guid) const
|
||||
{
|
||||
for (uint32 i = 0; i < GetBagSize(); ++i)
|
||||
if (m_bagslot[i] != 0)
|
||||
if (m_bagslot[i]->GetGUID() == guid)
|
||||
if (m_bagslot[i]->GetObjectGuid() == guid)
|
||||
return i;
|
||||
|
||||
return NULL_SLOT;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue