From e4abfb651d51670fcf85093b55189065c151cc14 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 17 Apr 2015 18:26:38 +0300 Subject: Add eathena defines into inventorytype enum. --- src/gui/windows/inventorywindow.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/gui/windows/inventorywindow.cpp') diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index a2c08f819..28367d2c0 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -118,7 +118,9 @@ InventoryWindow::InventoryWindow(Inventory *const inventory) : case InventoryType::INVENTORY: case InventoryType::TRADE: case InventoryType::NPC: +#ifdef EATHENA_SUPPORT case InventoryType::VENDING: +#endif case InventoryType::TYPE_END: default: mSortDropDown->setSelected(config.getIntValue( @@ -299,7 +301,9 @@ InventoryWindow::InventoryWindow(Inventory *const inventory) : default: case InventoryType::TRADE: case InventoryType::NPC: +#ifdef EATHENA_SUPPORT case InventoryType::VENDING: +#endif case InventoryType::TYPE_END: break; }; @@ -356,7 +360,9 @@ void InventoryWindow::storeSortOrder() const case InventoryType::INVENTORY: case InventoryType::TRADE: case InventoryType::NPC: +#ifdef EATHENA_SUPPORT case InventoryType::VENDING: +#endif case InventoryType::TYPE_END: default: config.setValue("inventorySortOrder", @@ -800,7 +806,9 @@ void InventoryWindow::close() default: case InventoryType::TRADE: case InventoryType::NPC: +#ifdef EATHENA_SUPPORT case InventoryType::VENDING: +#endif case InventoryType::TYPE_END: break; } -- cgit v1.2.3-70-g09d2