Stupid copy/paste bug. The archiveDir is, of course, not static
authorChristoph Sommer <mail@christoph-sommer.de>
Sun, 11 May 2008 16:39:45 +0000 (16:39 +0000)
committerChristoph Sommer <mail@christoph-sommer.de>
Sun, 11 May 2008 16:39:45 +0000 (16:39 +0000)
SVN-Revision: 5459

src/addon/addon_manager.cpp

index 695e181..4a783d8 100644 (file)
@@ -349,7 +349,7 @@ AddonManager::load_addons()
     // get filename of potential archive
     std::string fileName = *i;
 
-    static const std::string archiveDir = PHYSFS_getRealDir(fileName.c_str());
+    const std::string archiveDir = PHYSFS_getRealDir(fileName.c_str());
     static const std::string dirSep = PHYSFS_getDirSeparator();
     std::string fullFilename = archiveDir + dirSep + fileName;