Test was always true.

This commit is contained in:
JoelKatz
2013-03-07 18:10:38 -08:00
parent 7c3d732a08
commit 2fab33d5d7

View File

@@ -26,9 +26,9 @@ Application* theApp = NULL;
DatabaseCon::DatabaseCon(const std::string& strName, const char *initStrings[], int initCount)
{
boost::filesystem::path pPath = theConfig.RUN_STANDALONE && !Config::LOAD
boost::filesystem::path pPath = (theConfig.RUN_STANDALONE && (!theConfig.START_UP != Config::LOAD))
? "" // Use temporary files.
: theConfig.DATA_DIR / strName; // Use regular db files.
: (theConfig.DATA_DIR / strName); // Use regular db files.
mDatabase = new SqliteDatabase(pPath.string().c_str());
mDatabase->connect();