forked from github/server
pointer out of scope
This commit is contained in:
parent
656922a9ec
commit
10cafcbdec
|
@ -1612,9 +1612,9 @@ static const region_list *travel_route(unit * u,
|
||||||
/* Berichte ueber Durchreiseregionen */
|
/* Berichte ueber Durchreiseregionen */
|
||||||
|
|
||||||
if (mode != TRAVEL_TRANSPORTED) {
|
if (mode != TRAVEL_TRANSPORTED) {
|
||||||
|
arg_regions ar;
|
||||||
arg_regions *arp = NULL;
|
arg_regions *arp = NULL;
|
||||||
if (steps > 1) {
|
if (steps > 1) {
|
||||||
arg_regions ar;
|
|
||||||
arp = &ar;
|
arp = &ar;
|
||||||
var_create_regions(arp, route_begin, steps - 1);
|
var_create_regions(arp, route_begin, steps - 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue