修复拖拽位置bug

This commit is contained in:
997146918 2025-10-24 15:12:19 +08:00
parent f2173d2ae1
commit 016199c0a5
2 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ bool UContainerInfo::RemoveContainerItem(const int32& ItemID)
{ {
for (int y = 0; y < Item.GetItemHeight(); y++) for (int y = 0; y < Item.GetItemHeight(); y++)
{ {
if (Item.IsSlotUsing(FIntPoint(x + Item.ContainerStartPos.X, y + Item.ContainerStartPos.Y))) if (Item.IsSlotUsing(FIntPoint(x, y )))
{ {
SlotInUsing[FIntPoint(x + Item.ContainerStartPos.X, y + Item.ContainerStartPos.Y)] = false; SlotInUsing[FIntPoint(x + Item.ContainerStartPos.X, y + Item.ContainerStartPos.Y)] = false;
} }