forked from github/server
fix gcc build
This commit is contained in:
parent
4f01d7041f
commit
6b1367dff1
|
@ -23,6 +23,7 @@ extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
struct region;
|
struct region;
|
||||||
|
struct faction;
|
||||||
struct plane;
|
struct plane;
|
||||||
struct storage;
|
struct storage;
|
||||||
|
|
||||||
|
|
|
@ -120,12 +120,11 @@ static void test_readwrite_dead_faction_group(CuTest *tc) {
|
||||||
static void test_readwrite_dead_faction_regionowner(CuTest *tc) {
|
static void test_readwrite_dead_faction_regionowner(CuTest *tc) {
|
||||||
faction *f;
|
faction *f;
|
||||||
region *r;
|
region *r;
|
||||||
unit * u;
|
|
||||||
|
|
||||||
test_cleanup();
|
test_cleanup();
|
||||||
config_set("rules.region_owners", "1");
|
config_set("rules.region_owners", "1");
|
||||||
f = test_create_faction(0);
|
f = test_create_faction(0);
|
||||||
u = test_create_unit(f, r = test_create_region(0, 0, 0));
|
test_create_unit(f, r = test_create_region(0, 0, 0));
|
||||||
region_set_owner(r, f, turn);
|
region_set_owner(r, f, turn);
|
||||||
destroyfaction(&factions);
|
destroyfaction(&factions);
|
||||||
CuAssertTrue(tc, !f->_alive);
|
CuAssertTrue(tc, !f->_alive);
|
||||||
|
|
Loading…
Reference in New Issue