diff options
Diffstat (limited to 'src/item.cpp')
-rw-r--r-- | src/item.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/item.cpp b/src/item.cpp index f686f5cf6..5f5b7120a 100644 --- a/src/item.cpp +++ b/src/item.cpp @@ -44,7 +44,6 @@ Item::Item(const int id, const int quantity, const int refine, mColor(0), mQuantity(quantity), mImage(nullptr), - mDrawImage(nullptr), mEquipment(equipment), mEquipped(equipped), mInEquipment(false), @@ -63,11 +62,6 @@ Item::~Item() mImage->decRef(); mImage = nullptr; } - if (mDrawImage) - { - mDrawImage->decRef(); - mDrawImage = nullptr; - } dragDrop.clearItem(this); } @@ -82,9 +76,6 @@ void Item::setId(const int id, const unsigned char color) if (mImage) mImage->decRef(); - if (mDrawImage) - mDrawImage->decRef(); - ResourceManager *const resman = ResourceManager::getInstance(); const ItemInfo &info = getInfo(); mTags = info.getTags(); @@ -93,19 +84,12 @@ void Item::setId(const int id, const unsigned char color) "itemIcons").append(info.getDisplay().image), info.getDyeColorsString(color)); mImage = resman->getImage(dye); - mDrawImage = resman->getImage(dye); if (!mImage) { mImage = Theme::getImageFromTheme(paths.getValue("unknownItemFile", "unknown-item.png")); } - - if (!mDrawImage) - { - mDrawImage = Theme::getImageFromTheme( - paths.getValue("unknownItemFile", "unknown-item.png")); - } } bool Item::isHaveTag(const int tagId) |