Fix implicit conversion warning

This commit is contained in:
Roland Winklmeier
2018-08-24 14:52:59 +02:00
parent 29e50ee516
commit 3267d1ec38
2 changed files with 2 additions and 2 deletions

View File

@@ -629,7 +629,7 @@ namespace BlackMisc
const int icaoScore = this->getAircraftIcaoCode().calculateScore(compareModel.getAircraftIcaoCode(), log);
const int liveryScore = this->getLivery().calculateScore(compareModel.getLivery(), preferColorLiveries, log);
CMatchingUtils::addLogDetailsToList(log, this->getCallsign(), QString("ICAO score: %1 | livery score: %2").arg(icaoScore).arg(liveryScore));
return 0.5 * (icaoScore + liveryScore);
return (icaoScore + liveryScore) / 2;
}
CStatusMessageList CAircraftModel::validate(bool withNestedObjects) const