Skip to content

Commit

Permalink
Use correct argument for demo file deletion when using subfolders (#965)
Browse files Browse the repository at this point in the history
  • Loading branch information
nickdnk authored Jan 16, 2023
1 parent 4c71a3e commit d88a727
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripting/get5/recording.sp
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ static void DemoRequest_Callback(Handle request, bool failure, bool requestSucce
if (deleteAfterUpload) {
LogDebug(
"get5_demo_delete_after_upload set to true when demo request started; deleting the file from the game server.");
if (FileExists(demoFileName) && !DeleteFile(demoFileName)) {
LogError("Unable to delete demo file %s.", demoFileName);
if (FileExists(demoFilePath) && !DeleteFile(demoFilePath)) {
LogError("Unable to delete demo file %s.", demoFilePath);
}
}
}
Expand Down

0 comments on commit d88a727

Please sign in to comment.