pointer out of scope

This commit is contained in:
Enno Rehling 2020-08-16 21:43:01 +02:00
parent 656922a9ec
commit 10cafcbdec
1 changed files with 1 additions and 1 deletions

View File

@ -1612,9 +1612,9 @@ static const region_list *travel_route(unit * u,
/* Berichte ueber Durchreiseregionen */
if (mode != TRAVEL_TRANSPORTED) {
arg_regions ar;
arg_regions *arp = NULL;
if (steps > 1) {
arg_regions ar;
arp = &ar;
var_create_regions(arp, route_begin, steps - 1);
}