]> git.mxchange.org Git - flightgear.git/commitdiff
Fix a problem where the protocol file could not be found when using the generic proto...
authorehofman <ehofman>
Sun, 25 Jul 2004 16:38:33 +0000 (16:38 +0000)
committerehofman <ehofman>
Sun, 25 Jul 2004 16:38:33 +0000 (16:38 +0000)
src/Main/fg_io.cxx

index 55c84f7527b4d7f793f4b552c2b912266af4b7dc..2e06e16b9f23583f1983cfe98c5ee8619375b7e8 100644 (file)
@@ -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