unit needs to be in a region or test_cleanup will not free it

This commit is contained in:
Enno Rehling 2015-10-14 22:19:15 +02:00
parent 467ce2a719
commit d79745812a
1 changed files with 1 additions and 1 deletions

View File

@ -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;