forked from github/server
prevent intermittent crash when region has mallorn:
This commit is contained in:
parent
4018850499
commit
48b33d31dd
1 changed files with 1 additions and 0 deletions
|
@ -95,6 +95,7 @@ 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;
|
||||||
|
|
Loading…
Reference in a new issue