prevent this mallorn problem for all future tests, too.

This commit is contained in:
Enno Rehling 2017-12-28 00:10:05 +01:00
parent 48b33d31dd
commit 3c16267246
2 changed files with 1 additions and 1 deletions

View file

@ -95,7 +95,6 @@ static void test_report_region(CuTest *tc) {
mstream_init(&out); mstream_init(&out);
r = test_create_region(0, 0, 0); r = test_create_region(0, 0, 0);
r->flags &= ~RF_MALLORN;
add_resource(r, 1, 135, 10, rt_stone); add_resource(r, 1, 135, 10, rt_stone);
CuAssertIntEquals(tc, 1, r->resources->level); CuAssertIntEquals(tc, 1, r->resources->level);
r->land->peasants = 5; r->land->peasants = 5;

View file

@ -63,6 +63,7 @@ struct region *test_create_region(int x, int y, const terrain_type *terrain)
else { else {
terraform_region(r, terrain); terraform_region(r, terrain);
} }
r->flags &= ~RF_MALLORN;
rsettrees(r, 0, 0); rsettrees(r, 0, 0);
rsettrees(r, 1, 0); rsettrees(r, 1, 0);
rsettrees(r, 2, 0); rsettrees(r, 2, 0);