From 4e97da8e138b21a5f5bea75e6a8d3211e4f28594 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Mar 2016 23:29:04 +0300 Subject: Add enum for item types. --- src/gui/windows/buydialog.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/gui/windows/buydialog.cpp') diff --git a/src/gui/windows/buydialog.cpp b/src/gui/windows/buydialog.cpp index b0cf5bc8c..fa7297bdd 100644 --- a/src/gui/windows/buydialog.cpp +++ b/src/gui/windows/buydialog.cpp @@ -390,12 +390,16 @@ void BuyDialog::reset() } ShopItem *BuyDialog::addItem(const int id, - const int type, + const ItemTypeT type, const ItemColor color, const int amount, const int price) { - ShopItem *const item = mShopItems->addItem(id, type, color, amount, price); + ShopItem *const item = mShopItems->addItem(id, + type, + color, + amount, + price); mShopItemList->adjustSize(); return item; } -- cgit v1.2.3-70-g09d2