fake wormhole in test had negative size

This commit is contained in:
Enno Rehling 2020-07-17 18:46:14 +02:00
parent a5b39962fd
commit a5bca33bf7
2 changed files with 3 additions and 0 deletions

View File

@ -15,6 +15,7 @@ indent_size = 4
[*.{xml,json}]
charset = utf-8
indent_size = 2
# Tab indentation (no size specified)
[Makefile]

View File

@ -37,6 +37,8 @@ static void test_make_wormholes(CuTest *tc) {
test_setup();
setup_wormholes();
btype = test_create_buildingtype("wormhole");
btype->maxsize = 4;
btype->maxcapacity = 4;
match[0] = r1 = test_create_plain(0, 0);
match[1] = r2 = test_create_plain(1, 0);
make_wormholes(match, 2, btype);