This commit is contained in:
doitux
2007-01-22 22:35:35 +00:00
parent e67c72e010
commit 5053467e6c
+2 -1
View File
@@ -121,7 +121,8 @@ string ConfigFile::readConfigString(string varName, string defaultValue)
TiXmlElement* conf = docHandle.FirstChild( "PokerTH" ).FirstChild( "Configuration" ).FirstChild( varName ).ToElement();
if ( conf ) {
conf->QueryValueAttribute("value", &tempString );
tempString = conf->Attribute("value");
cout << tempString << "\n";
} else {
//Wenn nicht gefunden eines neues Anlegen
TiXmlElement* config = docHandle.FirstChild( "PokerTH" ).FirstChild( "Configuration" ).ToElement();