浏览代码

Fix slot positioning

Ivan Savenko 2 年之前
父节点
当前提交
5b2ac27e90
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      client/widgets/CGarrisonInt.cpp

+ 1 - 1
client/widgets/CGarrisonInt.cpp

@@ -526,7 +526,7 @@ void CGarrisonInt::createSlots()
 		for(int j = 0; j < 7; j++)
 		{
 			if(!garrisonSlots[j])
-				garrisonSlots[j] = std::make_shared<CGarrisonSlot>(this, offset.x + (j*distance), offset.x, SlotID(j), i, nullptr);
+				garrisonSlots[j] = std::make_shared<CGarrisonSlot>(this, offset.x + (j*distance), offset.y, SlotID(j), i, nullptr);
 
 			if(layout == ESlotsLayout::TWO_ROWS && j >= 4)
 			{