diff --git a/src/game/src/item.cpp b/src/game/src/item.cpp index 3531419..2fc238d 100644 --- a/src/game/src/item.cpp +++ b/src/game/src/item.cpp @@ -1129,7 +1129,7 @@ bool CItem::AddSocket() void CItem::AlterToSocketItem(int iSocketCount) { - if (iSocketCount >= ITEM_SOCKET_MAX_NUM) + if (iSocketCount > ITEM_SOCKET_MAX_NUM) { SPDLOG_ERROR("Invalid Socket Count {}, set to maximum", (int) ITEM_SOCKET_MAX_NUM); iSocketCount = ITEM_SOCKET_MAX_NUM;