summaryrefslogtreecommitdiff
path: root/src/gui/models/shopitems.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-05-10 22:23:45 +0300
committerAndrei Karas <akaras@inbox.ru>2015-05-10 22:23:45 +0300
commitfca0f15e161755e0a430802b1b38bdda0cb033cb (patch)
treec81055dd71fa7a6510d029da65d7f0a36078a99a /src/gui/models/shopitems.h
parenteaf9448af11e82a567a82aafba95f65e984d9942 (diff)
downloadplus-fca0f15e161755e0a430802b1b38bdda0cb033cb.tar.gz
plus-fca0f15e161755e0a430802b1b38bdda0cb033cb.tar.bz2
plus-fca0f15e161755e0a430802b1b38bdda0cb033cb.tar.xz
plus-fca0f15e161755e0a430802b1b38bdda0cb033cb.zip
Fix crash on closing sell dialog in some cases.
Diffstat (limited to 'src/gui/models/shopitems.h')
-rw-r--r--src/gui/models/shopitems.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/models/shopitems.h b/src/gui/models/shopitems.h
index 50269cff1..b222f9385 100644
--- a/src/gui/models/shopitems.h
+++ b/src/gui/models/shopitems.h
@@ -147,6 +147,9 @@ class ShopItems final : public ListModel
ShopItem *findItem(const int id,
const unsigned char color) const A_WARN_UNUSED;
+ bool findInAllItems(std::vector<ShopItem*>::iterator &it,
+ const ShopItem *const item);
+
/** The list of items in the shop. */
std::vector<ShopItem*> mAllShopItems;