From 2d29847485933bf0e9ccbea4456f5473418d4b18 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 22 Mar 2016 03:49:32 +0300 Subject: Add check for from equip index. --- src/net/tmwa/inventoryrecv.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/net/tmwa/inventoryrecv.cpp') diff --git a/src/net/tmwa/inventoryrecv.cpp b/src/net/tmwa/inventoryrecv.cpp index 30e30502d..6e1fe0cfe 100644 --- a/src/net/tmwa/inventoryrecv.cpp +++ b/src/net/tmwa/inventoryrecv.cpp @@ -530,6 +530,8 @@ int InventoryRecv::getSlot(const int eAthenaSlot) mask <<= 1; position++; } + if (position >= EquipSlot::VECTOREND) + return EquipSlot::VECTOREND; return CAST_S32(EQUIP_POINTS[position]); } -- cgit v1.2.3-60-g2f50