diff --git a/amxmodx/file.cpp b/amxmodx/file.cpp index cc8236e4..f474f059 100755 --- a/amxmodx/file.cpp +++ b/amxmodx/file.cpp @@ -516,7 +516,7 @@ static cell AMX_NATIVE_CALL amx_fread_blocks(AMX *amx, cell *params) cell *addr = get_amxaddr(amx, params[2]); size_t blocks = params[3]; - switch (params[3]) + switch (params[4]) { case 1: //char {