diff --git a/source/glest_game/game/commander.cpp b/source/glest_game/game/commander.cpp index 4890cd69..b1e1e44c 100644 --- a/source/glest_game/game/commander.cpp +++ b/source/glest_game/game/commander.cpp @@ -687,7 +687,7 @@ void Commander::giveNetworkCommand(NetworkCommand* networkCommand) const { // If > 50% of team vote yes, switch th eplayers team if(newTeamTotalMemberCount > 0 && newTeamVotedYes > 0 && - newTeamVotedYes / newTeamTotalMemberCount > 0.5) { + static_cast(newTeamVotedYes) / static_cast(newTeamTotalMemberCount) > 0.5) { Faction *faction = world->getFaction(factionIndex); int oldTeam = faction->getTeam(); faction->setTeam(vote->newTeam);