Fixed "Invalid Socket Count 3, set to maximum" error

This commit is contained in:
Exynox 2024-03-31 09:09:35 +03:00
parent 1ee687f269
commit ebc479b7df
1 changed files with 1 additions and 1 deletions

View File

@ -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;