diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -174,11 +174,11 @@ static string gameLogPath(const Player &p1, const Player &p2, int index) { static optional<MatchResult> readMatchCache(const Player &p1, const Player &p2, int index) { string path = matchCachePath(p1, p2, index); - int64_t cacheStamp = fileLastModified(path); ifstream f(path); if (!f) return nullopt; + int64_t cacheStamp = fileLastModified(path); if (p1.lastModified > cacheStamp || p2.lastModified > cacheStamp) { return nullopt; } |