forked from github/server
unit needs to be in a region or test_cleanup will not free it
This commit is contained in:
parent
467ce2a719
commit
d79745812a
|
@ -35,7 +35,7 @@ static void setup_travelthru(travel_fixture *fix, int nunits) {
|
||||||
}
|
}
|
||||||
f = test_create_faction(0);
|
f = test_create_faction(0);
|
||||||
while (nunits--) {
|
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);
|
travelthru_add(r, u);
|
||||||
}
|
}
|
||||||
fix->r = r;
|
fix->r = r;
|
||||||
|
|
Loading…
Reference in New Issue