1
0
Fork 0

Fix a problem where the protocol file could not be found when using the generic protocol over TCP/IP.

This commit is contained in:
ehofman 2004-07-25 16:38:33 +00:00
parent 009afccb37
commit dddc4d4b16

View 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