diff --git a/src/openrct2/ride/TrackDesignRepository.cpp b/src/openrct2/ride/TrackDesignRepository.cpp index 5c9ceb8f99..922713daa3 100644 --- a/src/openrct2/ride/TrackDesignRepository.cpp +++ b/src/openrct2/ride/TrackDesignRepository.cpp @@ -346,7 +346,10 @@ private: public: static std::string GetNameFromTrackPath(const std::string &path) { - return Path::GetFileNameWithoutExtension(path); + std::string name = Path::GetFileNameWithoutExtension(path); + //The track name should be the file name until the first instance of a dot + name = name.substr(0, name.find_first_of(".")); + return name; } };