forked from github/server
pointer out of scope
This commit is contained in:
parent
0165dbf759
commit
b988dd0a7d
|
@ -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