fixed a bug reported by peanut where amx_fwrite() had the wrong sizeof() type

This commit is contained in:
David Anderson 2007-03-07 02:29:54 +00:00
parent 722e97fef2
commit ea34c2c78a

View File

@ -435,7 +435,7 @@ static cell AMX_NATIVE_CALL amx_fwrite(AMX *amx, cell *params)
case 4:
{
int c = static_cast<int>(params[2]);
return fwrite(&c, sizeof(short), 1, fp);
return fwrite(&c, sizeof(int), 1, fp);
}
}