From ab6067541e502f1ced820d9490cd6e4bed9c0696 Mon Sep 17 00:00:00 2001 From: HeathcliffWarriors <38794241+HeathcliffWarriors@users.noreply.github.com> Date: Sun, 15 Mar 2020 20:32:49 -0400 Subject: [PATCH] Fix idiotic typo I can't believe I missed that. *facepalms* --- CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp b/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp index 3b9e99a775..b02bd0a7d1 100644 --- a/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp +++ b/CvGameCoreDLL_Expansion2/CvDiplomacyAI.cpp @@ -51759,9 +51759,9 @@ void CvDiplomacyAI::DoDetermineTaxRateForVassalOnePlayer(PlayerTypes ePlayer) iAverageOpinionScore += (*it)->GetDiplomacyAI()->GetMajorCivOpinion(ePlayer); } - iAverageMeanness /= (1u,m_MasterTeam.size()); - iAverageLoyalty /= (1u,m_MasterTeam.size()); - iAverageOpinionScore /= (1u,m_MasterTeam.size()); + iAverageMeanness /= max(1u,m_MasterTeam.size()); + iAverageLoyalty /= max(1u,m_MasterTeam.size()); + iAverageOpinionScore /= max(1u,m_MasterTeam.size()); eTeamOpinion = (MajorCivOpinionTypes) iAverageOpinionScore;