Swap fread parameters so return value makes more sense

This commit is contained in:
Turo Lamminen 2018-01-06 15:28:09 +02:00
parent 5e2df0a52e
commit 41b772f1e4
3 changed files with 3 additions and 3 deletions

View file

@ -652,7 +652,7 @@ void MN_LoadSlotText(void)
SlotStatus[i] = 0;
continue;
}
fread(&SlotText[i], SLOTTEXTLEN, 1, fp);
fread(&SlotText[i], 1, SLOTTEXTLEN, fp);
fclose(fp);
SlotStatus[i] = 1;
}

View file

@ -131,7 +131,7 @@ void SV_WritePtr(void *ptr)
void SV_Read(void *buffer, int size)
{
fread(buffer, size, 1, SaveGameFP);
fread(buffer, 1, size, SaveGameFP);
}
byte SV_ReadByte(void)

View file

@ -3372,7 +3372,7 @@ static void SV_Close(void)
static void SV_Read(void *buffer, int size)
{
fread(buffer, size, 1, SavingFP);
fread(buffer, 1, size, SavingFP);
}
static byte SV_ReadByte(void)