summaryrefslogtreecommitdiff
path: root/src/gui/windows/equipmentwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/windows/equipmentwindow.cpp')
-rw-r--r--src/gui/windows/equipmentwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/windows/equipmentwindow.cpp b/src/gui/windows/equipmentwindow.cpp
index 24bda1f0d..74bcaaafb 100644
--- a/src/gui/windows/equipmentwindow.cpp
+++ b/src/gui/windows/equipmentwindow.cpp
@@ -322,7 +322,7 @@ void EquipmentWindow::action(const ActionEvent &event)
if (dragDrop.getSource() == DRAGDROP_SOURCE_INVENTORY)
{
- if (item->isEquipment())
+ if (item->isEquipment() == Equipm_true)
{
if (!item->isEquipped())
PlayerInfo::equipItem(item, true);
@@ -466,7 +466,7 @@ void EquipmentWindow::mouseReleased(MouseEvent &event)
if (dragDrop.getSource() == DRAGDROP_SOURCE_INVENTORY)
{
- if (item->isEquipment())
+ if (item->isEquipment() == Equipm_true)
{
if (!item->isEquipped())
PlayerInfo::equipItem(item, true);
@@ -474,7 +474,7 @@ void EquipmentWindow::mouseReleased(MouseEvent &event)
}
else if (dragDrop.getSource() == DRAGDROP_SOURCE_EQUIPMENT)
{
- if (item->isEquipment())
+ if (item->isEquipment() == Equipm_true)
{
const int x = event.getX();
const int y = event.getY();