Skip to content

Commit

Permalink
Fixed a typo in open_dir native (#955)
Browse files Browse the repository at this point in the history
dir[] parameter is not const, but it never changes.
  • Loading branch information
ArKaNeMaN authored Mar 25, 2021
1 parent 3d517d6 commit 9fbf91d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion amxmodx/file.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion plugins/include/file.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 9fbf91d

Please sign in to comment.