Laserlicht 4 月之前
父节点
当前提交
596e99d774
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 2 2
      client/windows/CExchangeWindow.cpp
  2. 1 1
      client/windows/CExchangeWindow.h

+ 2 - 2
client/windows/CExchangeWindow.cpp

@@ -401,12 +401,12 @@ void CExchangeWindow::update()
 			{
 			{
 				if(isMoreSkillsThanSlots)
 				if(isMoreSkillsThanSlots)
 				{
 				{
-					secSkillsFull = std::make_shared<CMultiLineLabel>(Rect(Point(32 + 36 * m + 454 * leftRight, qeLayout ? 83 : 88), Point(34, 28)), EFonts::FONT_MEDIUM, ETextAlignment::CENTER, Colors::WHITE, "...");
+					secSkillsFull[leftRight] = std::make_shared<CMultiLineLabel>(Rect(Point(32 + 36 * m + 454 * leftRight, qeLayout ? 83 : 88), Point(34, 28)), EFonts::FONT_MEDIUM, ETextAlignment::CENTER, Colors::WHITE, "...");
 					secSkills[leftRight][m]->setSkill(SecondarySkill::NONE);
 					secSkills[leftRight][m]->setSkill(SecondarySkill::NONE);
 					continue;
 					continue;
 				}
 				}
 				else
 				else
-					secSkillsFull.reset();
+					secSkillsFull[leftRight].reset();
 			}
 			}
 
 
 			int id = hero->secSkills[m].first;
 			int id = hero->secSkills[m].first;

+ 1 - 1
client/windows/CExchangeWindow.h

@@ -28,7 +28,7 @@ class CExchangeWindow : public CStatusbarWindow, public IGarrisonHolder, public
 
 
 	std::vector<std::shared_ptr<LRClickableAreaWTextComp>> primSkillAreas;
 	std::vector<std::shared_ptr<LRClickableAreaWTextComp>> primSkillAreas;
 	std::array<std::vector<std::shared_ptr<CSecSkillPlace>>, 2> secSkills;
 	std::array<std::vector<std::shared_ptr<CSecSkillPlace>>, 2> secSkills;
-	std::shared_ptr<CMultiLineLabel> secSkillsFull;
+	std::array<std::shared_ptr<CMultiLineLabel>, 2> secSkillsFull;
 
 
 	std::array<std::shared_ptr<CHeroArea>, 2> heroAreas;
 	std::array<std::shared_ptr<CHeroArea>, 2> heroAreas;
 	std::array<std::shared_ptr<LRClickableAreaWText>, 2> specialtyAreas;
 	std::array<std::shared_ptr<LRClickableAreaWText>, 2> specialtyAreas;