From a5bca33bf79341b8061db03ea00f6f91768a1dbf Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 17 Jul 2020 18:46:14 +0200 Subject: [PATCH] fake wormhole in test had negative size --- .editorconfig | 1 + src/wormhole.test.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/.editorconfig b/.editorconfig index fafe79d54..b2e1ab85b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -15,6 +15,7 @@ indent_size = 4 [*.{xml,json}] charset = utf-8 +indent_size = 2 # Tab indentation (no size specified) [Makefile] diff --git a/src/wormhole.test.c b/src/wormhole.test.c index 4b6fe2d3c..6d531f214 100644 --- a/src/wormhole.test.c +++ b/src/wormhole.test.c @@ -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);