From: ehofman Date: Tue, 27 Jul 2004 16:35:34 +0000 (+0000) Subject: Add a few else statements to make the checking work correct. Thanks Tiago Gusmao... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=99a7850cc7bdc7fb32e13b8fdf111dbd8c3c2072;p=flightgear.git Add a few else statements to make the checking work correct. Thanks Tiago Gusmao for detecting this. --- diff --git a/src/Network/generic.cxx b/src/Network/generic.cxx index 14a256193..2fccc8d6d 100644 --- a/src/Network/generic.cxx +++ b/src/Network/generic.cxx @@ -79,9 +79,9 @@ FGGeneric::FGGeneric(string& config) { if ( line_sep_string == "newline" ) line_separator = '\n'; - if ( line_sep_string == "tab" ) + else if ( line_sep_string == "tab" ) line_separator = '\t'; - if ( line_sep_string == "space" ) + else if ( line_sep_string == "space" ) line_separator = ' '; else if ( line_sep_string == "formfeed" ) line_separator = '\f';