Michael 2 years ago
parent
commit
3d08ecf024
2 changed files with 3 additions and 3 deletions
  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);