summaryrefslogtreecommitdiff
path: root/src/gui/windows/npcdialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-10-21 14:40:14 +0300
committerAndrei Karas <akaras@inbox.ru>2014-10-21 14:40:14 +0300
commit0875a6ddfda9ece1af4a818e38be1f99e578c59a (patch)
tree7bef19d2a2f41f090be11dfe5a8af88716e7b21c /src/gui/windows/npcdialog.cpp
parent40a60a7bb7fd3291fde0a2a689f674a8169c7b64 (diff)
downloadmv-0875a6ddfda9ece1af4a818e38be1f99e578c59a.tar.gz
mv-0875a6ddfda9ece1af4a818e38be1f99e578c59a.tar.bz2
mv-0875a6ddfda9ece1af4a818e38be1f99e578c59a.tar.xz
mv-0875a6ddfda9ece1af4a818e38be1f99e578c59a.zip
Add to item field favorite.
Diffstat (limited to 'src/gui/windows/npcdialog.cpp')
-rw-r--r--src/gui/windows/npcdialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/windows/npcdialog.cpp b/src/gui/windows/npcdialog.cpp
index 5360489cb..e547e9abd 100644
--- a/src/gui/windows/npcdialog.cpp
+++ b/src/gui/windows/npcdialog.cpp
@@ -468,7 +468,9 @@ void NpcDialog::action(const ActionEvent &event)
if (item)
{
mInventory->addItem(item->getId(), 1, 1, item->getColor(),
- item->getIdentified(), item->getDamaged(), false, false);
+ item->getIdentified(), item->getDamaged(),
+ item->getFavorite(),
+ false, false);
}
}
}