From b7bbb09d62b55bed26d432a6a2af9831c6ec9143 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 24 Mar 2016 20:42:22 +0300 Subject: Change ItemType into strong typed enum. --- src/gui/windows/inventorywindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gui/windows/inventorywindow.cpp') diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index 881e10c1a..5485bd98a 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -1047,7 +1047,8 @@ void InventoryWindow::combineItems(const int index1, if (!item2) return; - if (item1->getType() != ItemType::CARD) + // IT_CARD + if (item1->getType() != 6) { const Item *tmpItem = item1; item1 = item2; -- cgit v1.2.3-60-g2f50