nightly #1

Merged
WildEgo merged 57 commits from metin2/server:nightly into master 2024-04-23 13:17:20 +03:00
Showing only changes of commit ebc479b7df - Show all commits

View File

@ -1129,7 +1129,7 @@ bool CItem::AddSocket()
void CItem::AlterToSocketItem(int iSocketCount) 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); SPDLOG_ERROR("Invalid Socket Count {}, set to maximum", (int) ITEM_SOCKET_MAX_NUM);
iSocketCount = ITEM_SOCKET_MAX_NUM; iSocketCount = ITEM_SOCKET_MAX_NUM;