diff --git a/src/laws.c b/src/laws.c index d0239e862..c3be6f136 100755 --- a/src/laws.c +++ b/src/laws.c @@ -723,7 +723,7 @@ void immigration(void) } } if (badunit == 0) { - peasants += (int)(rng_double()*x); + peasants += (int)(rng_double()*income); rsetpeasants(r, peasants); } }