diff --git a/src/lib/update/human.c b/src/lib/update/human.c index 1a7b1c5f..fea35ade 100644 --- a/src/lib/update/human.c +++ b/src/lib/update/human.c @@ -192,9 +192,9 @@ famine_victims(short *vec, int etu) { double can_eat = vec[I_FOOD] / (etu * eatrate); int people = vec[I_CIVIL] + vec[I_MILIT] + vec[I_UW]; - if (people < can_eat) + if (people <= can_eat) return 0; - if (can_eat < people / 2) + if (can_eat <= people / 2) return people / 2; return (int)(people - can_eat); }