From cdc45a284821060f446e350c8505d3825b348ef4 Mon Sep 17 00:00:00 2001 From: Ted John Date: Sat, 22 Oct 2016 22:06:37 +0100 Subject: [PATCH] When renaming, don't change extension --- src/ride/TrackDesignRepository.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ride/TrackDesignRepository.cpp b/src/ride/TrackDesignRepository.cpp index 4b5da2654b..5e6660d81a 100644 --- a/src/ride/TrackDesignRepository.cpp +++ b/src/ride/TrackDesignRepository.cpp @@ -153,7 +153,7 @@ public: utf8 newPath[MAX_PATH]; Path::GetDirectory(newPath, sizeof(newPath), path); Path::Append(newPath, sizeof(newPath), newName); - Path::Append(newPath, sizeof(newPath), ".td6"); + Path::Append(newPath, sizeof(newPath), Path::GetExtension(path)); if (platform_file_move(path, newPath)) {