summaryrefslogtreecommitdiff
path: root/src/net/ea/inventoryhandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea/inventoryhandler.h')
-rw-r--r--src/net/ea/inventoryhandler.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/net/ea/inventoryhandler.h b/src/net/ea/inventoryhandler.h
index 709d6b53..65f48f6a 100644
--- a/src/net/ea/inventoryhandler.h
+++ b/src/net/ea/inventoryhandler.h
@@ -43,7 +43,7 @@ class EquipBackend : public Equipment::Backend {
Item *getEquipment(int index) const
{
int invyIndex = mEquipment[index];
- if (invyIndex == 0)
+ if (invyIndex == -1)
{
return NULL;
}
@@ -54,7 +54,7 @@ class EquipBackend : public Equipment::Backend {
{
for (int i = 0; i < EQUIPMENT_SIZE; i++)
{
- if (mEquipment[i])
+ if (mEquipment[i] != -1)
{
Item* item = player_node->getInventory()->getItem(i);
if (item)
@@ -63,7 +63,7 @@ class EquipBackend : public Equipment::Backend {
}
}
- mEquipment[i] = 0;
+ mEquipment[i] = -1;
}
}