From: ehofman Date: Sun, 25 Jul 2004 16:38:33 +0000 (+0000) Subject: Fix a problem where the protocol file could not be found when using the generic proto... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=dddc4d4b16912622ce41a9d54640fa196feab722;p=flightgear.git Fix a problem where the protocol file could not be found when using the generic protocol over TCP/IP. --- diff --git a/src/Main/fg_io.cxx b/src/Main/fg_io.cxx index 55c84f752..2e06e16b9 100644 --- a/src/Main/fg_io.cxx +++ b/src/Main/fg_io.cxx @@ -170,7 +170,9 @@ FGIO::parse_port_config( const string& config ) FGRUL *rul = new FGRUL; io = rul; } else if ( protocol == "generic" ) { - FGGeneric *generic = new FGGeneric( tokens[6] ); + int n = 6; + if (tokens[1] == "socket") n++; + FGGeneric *generic = new FGGeneric( tokens[n] ); io = generic; #ifdef FG_MPLAYER_AS