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

Removed getStr(bool), replaced with similar toString()

This commit is contained in:
Ivan Savenko
2023-09-04 22:21:02 +03:00
parent 7e27ac7073
commit 86a7f5f5cd
27 changed files with 83 additions and 99 deletions

View File

@@ -164,7 +164,7 @@ BattlePerspective::BattlePerspective CBattleInfoEssentials::battleGetMySide() co
if(*player == getBattle()->getSidePlayer(BattleSide::DEFENDER))
return BattlePerspective::RIGHT_SIDE;
logGlobal->error("Cannot find player %s in battle!", player->getStr());
logGlobal->error("Cannot find player %s in battle!", player->toString());
return BattlePerspective::INVALID;
}
@@ -296,7 +296,7 @@ BattleSideOpt CBattleInfoEssentials::playerToSide(const PlayerColor & player) co
if(getBattle()->getSidePlayer(BattleSide::DEFENDER) == player)
return BattleSideOpt(BattleSide::DEFENDER);
logGlobal->warn("Cannot find side for player %s", player.getStr());
logGlobal->warn("Cannot find side for player %s", player.toString());
return std::nullopt;
}