1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-26 22:57:00 +02:00

Update CBattleInfoEssentials.cpp

This commit is contained in:
Mikko 2019-01-24 14:48:38 +00:00 committed by GitHub
parent 5b8ff278b9
commit eba4f1b514
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -411,7 +411,7 @@ bool CBattleInfoEssentials::battleMatchOwner(const battle::Unit * attacker, cons
if(boost::logic::indeterminate(positivness))
return true;
else if(attacker->unitId() == defender->unitId())
return positivness;
return (bool)positivness;
else
return battleMatchOwner(battleGetOwner(attacker), defender, positivness);
}
@ -425,5 +425,5 @@ bool CBattleInfoEssentials::battleMatchOwner(const PlayerColor & attacker, const
if(boost::logic::indeterminate(positivness))
return true;
else
return (attacker == initialOwner) == positivness;
return (attacker == initialOwner) == (bool)positivness;
}