summaryrefslogtreecommitdiff
path: root/src/net/tmwa/inventoryhandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/inventoryhandler.h')
-rw-r--r--src/net/tmwa/inventoryhandler.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/net/tmwa/inventoryhandler.h b/src/net/tmwa/inventoryhandler.h
index 5f674eab0..c6c680b13 100644
--- a/src/net/tmwa/inventoryhandler.h
+++ b/src/net/tmwa/inventoryhandler.h
@@ -25,6 +25,7 @@
#include "equipment.h"
#include "inventory.h"
+#include "log.h"
#include "playerinfo.h"
#include "gui/inventorywindow.h"
@@ -58,9 +59,8 @@ class EquipBackend : public Equipment::Backend
{
int invyIndex = mEquipment[index];
if (invyIndex == -1)
- {
return NULL;
- }
+
return PlayerInfo::getInventory()->getItem(invyIndex);
}
@@ -72,9 +72,7 @@ class EquipBackend : public Equipment::Backend
{
Item* item = PlayerInfo::getInventory()->getItem(i);
if (item)
- {
item->setEquipped(false);
- }
}
mEquipment[i] = -1;