game.chatkey=CharToKey(string);
ipstream.ignore(256,'\n');
ipstream.ignore(256,'\n');
- ipstream >> i;
- stereomode = (StereoMode)i;
- ipstream.ignore(256,'\n');
- ipstream.ignore(256,'\n');
- ipstream >> stereoseparation;
- ipstream.ignore(256,'\n');
- ipstream.ignore(256,'\n');
- ipstream >> stereoreverse;
-
+ if (!ipstream.eof()) {
+ ipstream >> i;
+ stereomode = (StereoMode)i;
+ ipstream.ignore(256,'\n');
+ ipstream.ignore(256,'\n');
+ ipstream >> stereoseparation;
+ ipstream.ignore(256,'\n');
+ ipstream.ignore(256,'\n');
+ ipstream >> stereoreverse;
+ }
ipstream.close();
if(detail>2)detail=2;