Browse Source

Merge pull request #4587 from IvanSavenko/fix_hero_preview

Fix crash on accessing hero preview in map setup
Ivan Savenko 1 year ago
parent
commit
37d03bd9eb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/windows/CHeroOverview.cpp

+ 1 - 1
client/windows/CHeroOverview.cpp

@@ -125,7 +125,7 @@ void CHeroOverview::genControls()
     r = Rect(302, 3 * borderOffset + yOffset + 62, 292, 32);
     r = Rect(302, 3 * borderOffset + yOffset + 62, 292, 32);
     backgroundRectangles.push_back(std::make_shared<TransparentFilledRectangle>(r.resize(1), rectangleColor, borderColor));
     backgroundRectangles.push_back(std::make_shared<TransparentFilledRectangle>(r.resize(1), rectangleColor, borderColor));
 
 
-    auto stacksCountChances = LOCPLINT->cb->getSettings().getVector(EGameSettings::HEROES_STARTING_STACKS_CHANCES);
+    auto stacksCountChances = CGI->engineSettings()->getVector(EGameSettings::HEROES_STARTING_STACKS_CHANCES);
 
 
     // army
     // army
     int space = (260 - 7 * 32) / 6;
     int space = (260 - 7 * 32) / 6;