From c4e1ccd15d9760a83e25d36b969f6ae4770a869a Mon Sep 17 00:00:00 2001 From: Nairda <38843773+Nairdaa@users.noreply.github.com> Date: Sat, 17 Aug 2024 06:34:27 +0200 Subject: [PATCH] Update replay-stocks.sp ecksdee. --- addons/sourcemod/scripting/include/shavit/replay-stocks.sp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/sourcemod/scripting/include/shavit/replay-stocks.sp b/addons/sourcemod/scripting/include/shavit/replay-stocks.sp index 4079cb4a..70c40036 100644 --- a/addons/sourcemod/scripting/include/shavit/replay-stocks.sp +++ b/addons/sourcemod/scripting/include/shavit/replay-stocks.sp @@ -90,13 +90,13 @@ stock void Shavit_Replay_CreateDirectories(const char[] sReplayFolder, int style FormatEx(sPath, sizeof(sPath), "%s/0/faketestfile_69.replay", sReplayFolder); File fTest = OpenFile(sPath, "wb+"); - // Check if file was opened successfully before closing + // Check if the file was opened successfully for writing if (fTest == null) { SetFailState("Failed to write to replay folder (%s). Make sure you have file permissions.", sReplayFolder); } else { + // File was opened successfully, now close it CloseHandle(fTest); - } }