Fixed "Invalid Socket Count 3, set to maximum" error
This commit is contained in:
parent
1ee687f269
commit
ebc479b7df
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue