mirror of
https://github.com/mangosfour/server.git
synced 2025-12-13 04:37:00 +00:00
Build fixes made and tabs turned into spaces
A few build fixes made. Tabs converted into spaces, although it does not seem to show that in the list of changes!
This commit is contained in:
parent
669502916a
commit
bcf0a9b25a
7 changed files with 167 additions and 6 deletions
|
|
@ -92,13 +92,15 @@ bool VendorItemData::RemoveItem(uint32 item_id, uint8 type)
|
|||
return found;
|
||||
}
|
||||
|
||||
VendorItem const* VendorItemData::FindItemCostPair(uint32 item_id, uint8 type, uint32 extendedCost) const
|
||||
VendorItem const* VendorItemData::FindItem(uint32 item_id) const
|
||||
{
|
||||
for (VendorItemList::const_iterator i = m_items.begin(); i != m_items.end(); ++i)
|
||||
{
|
||||
// Skip checking for conditions, condition system is powerfull enough to not require additional entries only for the conditions
|
||||
if ((*i)->item == item_id && (*i)->ExtendedCost == extendedCost && (*i)->type == type)
|
||||
if ((*i)->item == item_id)
|
||||
{
|
||||
return *i;
|
||||
}
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue