Ver código fonte

MXE compile fix

Ivan Savenko 2 anos atrás
pai
commit
6fd50a7ded
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      client/lobby/CBonusSelection.cpp

+ 2 - 1
client/lobby/CBonusSelection.cpp

@@ -92,7 +92,8 @@ CBonusSelection::CBonusSelection()
 	flagbox = std::make_shared<CFlagBox>(Rect(486, 407, 335, 23));
 
 	std::vector<std::string> difficulty;
-	boost::split(difficulty, CGI->generaltexth->allTexts[492], boost::is_any_of(" "));
+	std::string difficultyString = CGI->generaltexth->allTexts[492];
+	boost::split(difficulty, difficultyString, boost::is_any_of(" "));
 	labelDifficulty = std::make_shared<CLabel>(689, 432, FONT_MEDIUM, ETextAlignment::TOPLEFT, Colors::WHITE, difficulty.back());
 
 	for(size_t b = 0; b < difficultyIcons.size(); ++b)