From a531be218ca4d3ba3a5afd0ea9c3d22e9d6d98f4 Mon Sep 17 00:00:00 2001 From: kts Date: Sun, 1 Mar 2015 16:54:21 -0800 Subject: [PATCH] Moved one line of code for no real reason (stemming from foolishness involved with not cleaning the build) --- src/AssetCache.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/AssetCache.cpp b/src/AssetCache.cpp index 974823f..39b953b 100644 --- a/src/AssetCache.cpp +++ b/src/AssetCache.cpp @@ -79,12 +79,12 @@ If not, the function will traverse the full hierarchy of the given directory and */ int AssetCache::fromDir(const char *dir) { char cachepath[1024]; + directory.assign(dir); #ifndef _WIN32 sprintf(cachepath, "%s/.CACHE", dir); #else sprintf_s(cachepath, 1024, "%s/.CACHE", dir); #endif - directory.assign(dir); if (fromFile(cachepath) != 0) { LOG(LOG_INFO) << FUNC_NAME << ": " << cachepath << " does not exist"; }