From e55ff78e6090d3e84cfa9dc9763ecdd79095f209 Mon Sep 17 00:00:00 2001 From: RD42 <42702181+dashr9230@users.noreply.github.com> Date: Thu, 18 Apr 2024 22:48:15 +0800 Subject: [PATCH] [server/bot] Change lseek to fseek in n_fseek function --- server/amx/amxfile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/amx/amxfile.c b/server/amx/amxfile.c index d8164cc..1dfc58e 100644 --- a/server/amx/amxfile.c +++ b/server/amx/amxfile.c @@ -630,7 +630,7 @@ static cell AMX_NATIVE_CALL n_fseek(AMX *amx, cell *params) return 0; } /* switch */ UNUSED_PARAM(amx); - return lseek(fileno((FILE*)params[1]),params[2],whence); + return fseek((FILE*)params[1], params[2], whence); } /* bool: fexist(const name[]) */