X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FMain%2Foptions.cxx;h=0e19d6ee38f6f7f379c5826334d07d2873150ec1;hb=09d4176e963be04dec40943083e369081b8f7a18;hp=c719def4fdde8e82ad1604d7b3c303b1f4c07585;hpb=be7e5e49900ce65a023ece8b1954e695b70fa26a;p=flightgear.git diff --git a/src/Main/options.cxx b/src/Main/options.cxx index c719def4f..0e19d6ee3 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -539,13 +539,14 @@ add_channel( const string& type, const string& channel_str ) { // at this stage. // Parse --wp=ID[@alt] -static bool +static void parse_wp( const string& arg ) { - string_list *waypoints = globals->get_initial_waypoints(); - if (!waypoints) - waypoints = new string_list; - waypoints->push_back(arg); - globals->set_initial_waypoints(waypoints); + string_list *waypoints = globals->get_initial_waypoints(); + if (!waypoints) { + waypoints = new string_list; + } + waypoints->push_back(arg); + globals->set_initial_waypoints(waypoints); }