// load the edicts out of the savegame file
// -1 is the globals
entnum = -1;
- while (!FS_Eof (f))
+ for (;;)
{
+ r = EOF;
for (i = 0;i < (int)sizeof(buf) - 1;i++)
{
r = FS_Getc (f);
break;
}
}
+ if (r == EOF)
+ break;
if (i == sizeof(buf)-1)
Host_Error ("Loadgame buffer overflow");
buf[i] = 0;