summaryrefslogtreecommitdiff
path: root/src/net/ea
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/ea')
-rw-r--r--src/net/ea/equipbackend.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net/ea/equipbackend.h b/src/net/ea/equipbackend.h
index fb06cf7e2..ef4426a52 100644
--- a/src/net/ea/equipbackend.h
+++ b/src/net/ea/equipbackend.h
@@ -80,6 +80,9 @@ class EquipBackend final : public Equipment::Backend
if (!inv)
return;
+ if (index < 0 || index >= EQUIPMENT_SIZE)
+ return;
+
// Unequip existing item
Item *item = inv->getItem(mEquipment[index]);