diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-04-17 18:26:38 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-04-17 18:26:38 +0300 |
commit | e4abfb651d51670fcf85093b55189065c151cc14 (patch) | |
tree | 2cb0f32630dce231c2b49263992b927549a9ad66 /src/gui/windows/inventorywindow.cpp | |
parent | 55d8a042bb195d3c020a3296233b698ef6b109df (diff) | |
download | manaplus-e4abfb651d51670fcf85093b55189065c151cc14.tar.gz manaplus-e4abfb651d51670fcf85093b55189065c151cc14.tar.bz2 manaplus-e4abfb651d51670fcf85093b55189065c151cc14.tar.xz manaplus-e4abfb651d51670fcf85093b55189065c151cc14.zip |
Add eathena defines into inventorytype enum.
Diffstat (limited to 'src/gui/windows/inventorywindow.cpp')
-rw-r--r-- | src/gui/windows/inventorywindow.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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; } |