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/inventorywindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/windows/inventorywindow.cpp') diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index 5485bd98a..db256b4a1 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -1047,8 +1047,7 @@ void InventoryWindow::combineItems(const int index1, if (!item2) return; - // IT_CARD - if (item1->getType() != 6) + if (item1->getType() != ItemType::Card) { const Item *tmpItem = item1; item1 = item2; -- cgit v1.2.3-70-g09d2