From dcc4c9b77747eca14d7f0ca4317a80b61e5f0d61 Mon Sep 17 00:00:00 2001 From: albertzeyer Date: Fri, 24 Jul 2009 14:38:05 +0000 Subject: [PATCH] cleanup git-svn-id: https://clonekeenplus.svn.sourceforge.net/svnroot/clonekeenplus/cgenius/trunk@147 4df4b0f3-56ce-47cb-b001-ed939b7d65a6 --- src/sdl/CSettings.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/sdl/CSettings.cpp b/src/sdl/CSettings.cpp index 25994f3c6..0b9a90cd1 100644 --- a/src/sdl/CSettings.cpp +++ b/src/sdl/CSettings.cpp @@ -18,10 +18,10 @@ void InitSearchPaths() { // have to set to find the config at some of the default places InitBaseSearchPaths(); - std::string value; int i = 1; while(true) { - if(!ReadString(CONFIGFILENAME, "FileHandling", "SearchPath" + itoa(i,10), value, "")) + std::string value; + if(!ReadString(CONFIGFILENAME, "FileHandling", "SearchPath" + itoa(i), value, "")) break; AddToFileList(&tSearchPaths, value);