From e47ad880a0cf0a9a1ab902bfd08263c6bdf056d1 Mon Sep 17 00:00:00 2001 From: ? Date: Thu, 28 Feb 2019 15:06:23 +0100 Subject: [PATCH] racing:: missing CAP_FILES guard --- racing.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/racing.cpp b/racing.cpp index 770c6761..d2bff9bf 100644 --- a/racing.cpp +++ b/racing.cpp @@ -1200,8 +1200,10 @@ void race_won() { sort(subtrack.begin(), subtrack.end(), [] (const ghost &g1, const ghost &g2) { return g1.result < g2.result; }); if(isize(subtrack) > ghosts_to_save && ghosts_to_save > 0) subtrack.resize(ghosts_to_save); + #if CAP_FILES if(ghosts_to_save > 0) write_ghosts(track_code, modecode()); + #endif if(official_race) uploadScore(); }