From d79745812acef454e59adacc604b0135dc9fbd8a Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Wed, 14 Oct 2015 22:19:15 +0200 Subject: [PATCH] unit needs to be in a region or test_cleanup will not free it --- src/travelthru.test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/travelthru.test.c b/src/travelthru.test.c index f92188751..74ab29b7e 100644 --- a/src/travelthru.test.c +++ b/src/travelthru.test.c @@ -35,7 +35,7 @@ static void setup_travelthru(travel_fixture *fix, int nunits) { } f = test_create_faction(0); while (nunits--) { - unit *u = test_create_unit(f, 0); + unit *u = test_create_unit(f, test_create_region(1, 0, 0)); travelthru_add(r, u); } fix->r = r;