summaryrefslogtreecommitdiff
path: root/src/gui/windows/equipmentwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-11 12:16:03 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-11 12:16:03 +0300
commit4a337b7a42d0c92bc2ed26b7e206188dc04c569d (patch)
tree97c59c86246afce0710795c6ba545d40004c6810 /src/gui/windows/equipmentwindow.cpp
parent067410031057ffc9bdb36b976bc2a658b23acb1b (diff)
downloadplus-4a337b7a42d0c92bc2ed26b7e206188dc04c569d.tar.gz
plus-4a337b7a42d0c92bc2ed26b7e206188dc04c569d.tar.bz2
plus-4a337b7a42d0c92bc2ed26b7e206188dc04c569d.tar.xz
plus-4a337b7a42d0c92bc2ed26b7e206188dc04c569d.zip
Add typed bool type Equipm.
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();