修改容器添加逻辑判断bug

This commit is contained in:
997146918 2025-10-20 19:59:38 +08:00
parent 680b6b3d87
commit c00a1064b1
4 changed files with 2 additions and 1 deletions

View File

@ -80,8 +80,9 @@ bool UContainerInfo::IsItemOverlapOtherItem(FContainerItem NewItem, FIntPoint Po
{ {
if (NewItem.IsSlotUsing(Position)) if (NewItem.IsSlotUsing(Position))
{ {
if (!ContainerShape->IsSlotActive(Position.X + x, Position.Y + y) || if (!ContainerShape->IsSlotActive(Position.X + x, Position.Y + y) ||
SlotInUsing.Find(FIntPoint(x + Position.X, y + Position.Y))) SlotInUsing[FIntPoint(x + Position.X, y + Position.Y)])
{ {
return true; return true;
} }