From 22a44540d93c5a728fffbc7b676e1509d28aad2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Lemaire?= Date: Thu, 20 Jun 2013 12:32:50 +0200 Subject: [PATCH] Fixed a cache issue --- src/rendering/tools/cache.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rendering/tools/cache.c b/src/rendering/tools/cache.c index 468ddcd..6047525 100644 --- a/src/rendering/tools/cache.c +++ b/src/rendering/tools/cache.c @@ -72,14 +72,14 @@ int cacheFileIsWritable(CacheFile* cache) const char* cacheFileGetPath(CacheFile* cache) { - FILE* f = fopen(cache->filepath, "rb"); + FILE* f = fopen(cache->datapath, "rb"); if (f) { fclose(f); - return cache->filepath; + return cache->datapath; } else { - return cache->datapath; + return cache->filepath; } }