From ebc479b7dfe03d4d3b4e5340833338ff86c45ba8 Mon Sep 17 00:00:00 2001 From: Exynox Date: Sun, 31 Mar 2024 09:09:35 +0300 Subject: [PATCH] Fixed "Invalid Socket Count 3, set to maximum" error --- src/game/src/item.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;