From b988dd0a7dfb3bc6562b840b98cbc8dbb6a200ef Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 16 Aug 2020 21:43:01 +0200 Subject: [PATCH] pointer out of scope --- src/move.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/move.c b/src/move.c index 38cc0d8bb..a9f0095bf 100644 --- a/src/move.c +++ b/src/move.c @@ -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); }