1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-29 23:07:48 +02:00

(int) -> static_cast<int>

This commit is contained in:
AlexVinS
2017-08-12 15:43:41 +03:00
parent 8c0fab1dcf
commit 0868164147
8 changed files with 19 additions and 17 deletions

View File

@@ -205,7 +205,7 @@ const CArmedInstance * CBattleInfoEssentials::battleGetArmyObject(ui8 side) cons
}
if(!battleDoWeKnowAbout(side))
{
logGlobal->error("FIXME: %s access check ", __FUNCTION__);
logGlobal->error("FIXME: %s access check!", __FUNCTION__);
return nullptr;
}
return getBattle()->sides[side].armyObject;
@@ -216,7 +216,7 @@ InfoAboutHero CBattleInfoEssentials::battleGetHeroInfo(ui8 side) const
auto hero = getBattle()->sides[side].hero;
if(!hero)
{
logGlobal->warn("%s: side %d does not have hero!", __FUNCTION__, (int)side);
logGlobal->warn("%s: side %d does not have hero!", __FUNCTION__, static_cast<int>(side));
return InfoAboutHero();
}
InfoAboutHero::EInfoLevel infoLevel = battleDoWeKnowAbout(side) ? InfoAboutHero::EInfoLevel::DETAILED : InfoAboutHero::EInfoLevel::BASIC;