From 9fbf91ded017111f35338dff502882d7049ce1f6 Mon Sep 17 00:00:00 2001 From: ArKaNeMaN <42887370+ArKaNeMaN@users.noreply.github.com> Date: Thu, 25 Mar 2021 20:04:00 +0300 Subject: [PATCH] Fixed a typo in open_dir native (#955) dir[] parameter is not const, but it never changes. --- amxmodx/file.cpp | 2 +- plugins/include/file.inc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/amxmodx/file.cpp b/amxmodx/file.cpp index 2f92bf2b..3b51f88d 100755 --- a/amxmodx/file.cpp +++ b/amxmodx/file.cpp @@ -756,7 +756,7 @@ struct DirectoryHandle bool valvefs; }; -// native open_dir(dir[], firstfile[], length, &FileType:type = FileType_Unknown, bool:use_valve_fs=false, const valve_path_id[] = "GAME"); +// native open_dir(const dir[], firstfile[], length, &FileType:type = FileType_Unknown, bool:use_valve_fs=false, const valve_path_id[] = "GAME"); static cell AMX_NATIVE_CALL amx_open_dir(AMX *amx, cell *params) { int length; diff --git a/plugins/include/file.inc b/plugins/include/file.inc index 55ee53ac..db0b96c1 100755 --- a/plugins/include/file.inc +++ b/plugins/include/file.inc @@ -519,7 +519,7 @@ native unlink(const filename[], bool:use_valve_fs = false, const valve_path_id[] * * @return Handle to the directory, 0 otherwise */ -native open_dir(dir[], firstfile[], length, &FileType:type = FileType_Unknown, bool:use_valve_fs = false, const valve_path_id[] = "GAME"); +native open_dir(const dir[], firstfile[], length, &FileType:type = FileType_Unknown, bool:use_valve_fs = false, const valve_path_id[] = "GAME"); /** * Reads the next directory entry as a local filename.