diff --git a/src/ride/TrackDesignRepository.cpp b/src/ride/TrackDesignRepository.cpp index 5e6660d81a..f0fa587933 100644 --- a/src/ride/TrackDesignRepository.cpp +++ b/src/ride/TrackDesignRepository.cpp @@ -148,7 +148,7 @@ public: if (index != SIZE_MAX) { TrackRepositoryItem * item = &_items[index]; - if (!item->Flags & TRIF_READ_ONLY) + if (!(item->Flags & TRIF_READ_ONLY)) { utf8 newPath[MAX_PATH]; Path::GetDirectory(newPath, sizeof(newPath), path);