Michael 2 년 전
부모
커밋
3d08ecf024
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      client/lobby/OptionsTab.cpp
  2. 1 1
      client/lobby/OptionsTab.h

+ 2 - 2
client/lobby/OptionsTab.cpp

@@ -438,7 +438,7 @@ OptionsTab::SelectionWindow::SelectionWindow(PlayerColor _color)
 	allowedFactions = SEL->getPlayerInfo(color.getNum()).allowedFactions;
 	allowedHeroes = SEL->getMapInfo()->mapHeader->allowedHeroes;
 
-	redraw();
+	recreate();
 
 	center();
 }
@@ -678,7 +678,7 @@ void OptionsTab::SelectionWindow::clickReleased(const Point & cursorPosition) {
 		if(set.castle == -1)
 			apply();
 		else
-			redraw();
+			recreate();
 	}
 	else if(set.hero != -2)
 	{

+ 1 - 1
client/lobby/OptionsTab.h

@@ -124,7 +124,7 @@ public:
 		void genContentBonus();
 
 		void apply();
-		void redraw();
+		void recreate();
 		void setSelection();
 		FactionID getElementCastle(const Point & cursorPosition);
 		HeroTypeID getElementHero(const Point & cursorPosition);