forked from github/server
coverity: unintended integer division
This commit is contained in:
parent
898c12e99a
commit
9d5369ff1e
1 changed files with 2 additions and 2 deletions
|
@ -2944,8 +2944,8 @@ static void peasant_taxes(region * r)
|
|||
|
||||
level = buildingeffsize(b, false);
|
||||
if (level > 0) {
|
||||
double taxfactor = money * level / building_taxes(b);
|
||||
double morale = money * region_get_morale(r) / MORALE_TAX_FACTOR;
|
||||
double taxfactor = (double)money * level / building_taxes(b);
|
||||
double morale = (double)money * region_get_morale(r) / MORALE_TAX_FACTOR;
|
||||
if (taxfactor > morale) {
|
||||
taxfactor = morale;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue