1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-07-15 01:24:45 +02:00

fix build & suggested changed

This commit is contained in:
SoundSSGood
2023-11-06 15:21:40 +02:00
parent 539b2e596d
commit 41ee52d9d4
5 changed files with 115 additions and 112 deletions

View File

@ -30,12 +30,12 @@ CAltarWindow::CAltarWindow(const IMarket * market, const CGHeroInstance * hero,
{
OBJECT_CONSTRUCTION_CUSTOM_CAPTURING(255 - DISPOSE);
assert(mode == EMarketMode::ARTIFACT_EXP || mode == EMarketMode::CREATURE_EXP);
if(mode == EMarketMode::ARTIFACT_EXP)
createAltarArtifacts(market, hero);
else if (mode == EMarketMode::CREATURE_EXP)
else if(mode == EMarketMode::CREATURE_EXP)
createAltarCreatures(market, hero);
else
close();
updateExpToLevel();
statusBar = CGStatusBar::create(std::make_shared<CPicture>(background->getSurface(), Rect(8, pos.h - 26, pos.w - 16, 19), 8, pos.h - 26));
}