summaryrefslogtreecommitdiff
path: root/src/inventory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inventory.cpp')
-rw-r--r--src/inventory.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/inventory.cpp b/src/inventory.cpp
index 47a32bce1..b247b2f63 100644
--- a/src/inventory.cpp
+++ b/src/inventory.cpp
@@ -204,7 +204,8 @@ void Inventory::distributeSlotsChangedEvent()
(*i)->slotsChanged(this);
}
-Item *Inventory::findItemBySprite(std::string spritePath, Gender gender)
+Item *Inventory::findItemBySprite(std::string spritePath,
+ Gender gender, int race)
{
spritePath = removeSpriteIndex(spritePath);
// logger->log1("Inventory::FindItemBySprite sprite: " + spritePath);
@@ -217,7 +218,7 @@ Item *Inventory::findItemBySprite(std::string spritePath, Gender gender)
{
if (mItems[i])
{
- std::string path = mItems[i]->getInfo().getSprite(gender);
+ std::string path = mItems[i]->getInfo().getSprite(gender, race);
if (!path.empty())
{
path = removeSpriteIndex(path);