From 82e94d0328e665eddf57054b75055b9a69d8102b Mon Sep 17 00:00:00 2001 From: Emagi Date: Fri, 13 Dec 2024 14:51:02 -0500 Subject: [PATCH] avoid sending non stacked items to overflow due to the count being set to 65535 and earlier clients split those stacks --- source/WorldServer/Items/ItemsDB.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/WorldServer/Items/ItemsDB.cpp b/source/WorldServer/Items/ItemsDB.cpp index 98aab1b..4030412 100644 --- a/source/WorldServer/Items/ItemsDB.cpp +++ b/source/WorldServer/Items/ItemsDB.cpp @@ -1377,7 +1377,7 @@ void WorldDatabase::LoadCharacterItemList(int32 account_id, int32 char_id, Playe ret = player->GetAppearanceEquipmentList()->AddItem(item->details.slot_id, item); } else { - if (version < 1209 && item->details.count > 255) { + if (version < 1209 && item->details.count > 255 && item->stack_count > 1) { int stacks = item->details.count / 255; int8 remainder = item->details.count % 255; item->details.count = remainder;