summaryrefslogtreecommitdiff
path: root/src/item.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/item.cpp')
-rw-r--r--src/item.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/item.cpp b/src/item.cpp
index f74d0e837..d76eaf401 100644
--- a/src/item.cpp
+++ b/src/item.cpp
@@ -70,7 +70,7 @@ void Item::setId(int id, unsigned char color)
mDrawImage->decRef();
ResourceManager *resman = ResourceManager::getInstance();
- ItemInfo info = getInfo();
+ const ItemInfo &info = getInfo();
mTags = info.getTags();
// logger->log("tag0=" + toString(mTags[1]));
@@ -107,7 +107,7 @@ bool Item::isHaveTag(int tagId)
Image *Item::getImage(int id, unsigned char color)
{
ResourceManager *resman = ResourceManager::getInstance();
- ItemInfo info = ItemDB::get(id);
+ const ItemInfo &info = ItemDB::get(id);
SpriteDisplay display = info.getDisplay();
std::string imagePath = "graphics/items/" + display.image;
Image *image;