fix unused variable warning

This commit is contained in:
Enno Rehling 2015-09-09 11:24:11 +02:00
parent cac22bcb02
commit bf6f05f39d
1 changed files with 2 additions and 3 deletions

View File

@ -44,15 +44,14 @@ static void test_add_seen(CuTest *tc) {
}
static void test_faction_add_seen(CuTest *tc) {
region *r;
faction *f;
seen_region *sr;
test_cleanup();
f = test_create_faction(0);
f->seen = seen_init();
r = test_create_region(0, 0, 0);
r = test_create_region(0, 1, 0);
test_create_region(0, 0, 0);
test_create_region(0, 1, 0);
sr = faction_add_seen(f, regions, see_unit);
CuAssertIntEquals(tc, false, sr->disbelieves);
CuAssertPtrEquals(tc, regions, f->first);