[Supertux-Commit] r5459 - trunk/supertux/src/addon

sommer at millhouse.dreamhost.com sommer at millhouse.dreamhost.com
Sun May 11 09:39:45 PDT 2008


Author: sommer
Date: 2008-05-11 09:39:45 -0700 (Sun, 11 May 2008)
New Revision: 5459

Modified:
   trunk/supertux/src/addon/addon_manager.cpp
Log:
Stupid copy/paste bug. The archiveDir is, of course, not static


Modified: trunk/supertux/src/addon/addon_manager.cpp
===================================================================
--- trunk/supertux/src/addon/addon_manager.cpp	2008-05-11 15:20:03 UTC (rev 5458)
+++ trunk/supertux/src/addon/addon_manager.cpp	2008-05-11 16:39:45 UTC (rev 5459)
@@ -349,7 +349,7 @@
     // 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;
 




More information about the Supertux-Commit mailing list