diff options
Diffstat (limited to 'src/gui/shop.cpp')
-rw-r--r-- | src/gui/shop.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/gui/shop.cpp b/src/gui/shop.cpp index 85f238c0..3cdc304c 100644 --- a/src/gui/shop.cpp +++ b/src/gui/shop.cpp @@ -43,6 +43,12 @@ std::string ShopItems::getElementAt(int i) return mShopItems.at(i)->getDisplayName(); } +void ShopItems::addItem(int id, int amount, int price) +{ + mShopItems.push_back(new ShopItem(-1, id, amount, price)); +} + +#ifdef EATHENA_SUPPORT void ShopItems::addItem(int inventoryIndex, int id, int quantity, int price) { ShopItem* item = 0; @@ -61,11 +67,7 @@ void ShopItems::addItem(int inventoryIndex, int id, int quantity, int price) mShopItems.push_back(item); } } - -void ShopItems::addItem(int id, int price) -{ - addItem(-1, id, 0, price); -} +#endif ShopItem* ShopItems::at(int i) const { |