summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.cpp b/main.cpp
index 89bae51..f2d0664 100644
--- a/main.cpp
+++ b/main.cpp
@@ -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;
}