XML fixes

This commit is contained in:
auria.mg 2018-06-03 21:48:34 -04:00
parent 42d98f8ff1
commit c599195eeb
3 changed files with 3 additions and 3 deletions

View File

@ -87,7 +87,7 @@ PlayerProfile::PlayerProfile(const XMLNode* node)
node->get("saved-session", &m_saved_session );
node->get("saved-user", &m_saved_user_id );
node->get("saved-token", &m_saved_token );
node->get("last-online-name", &m_last_online_name );
node->getAndDecode("last-online-name", &m_last_online_name );
node->get("last-was-online", &m_last_was_online );
node->get("remember-password", &m_remember_password);
node->get("icon-filename", &m_icon_filename );

View File

@ -270,7 +270,7 @@ void GrandPrixData::reload()
throw std::runtime_error("Wrong root node name");
}
if (!root->get("name", &m_name))
if (!root->getAndDecode("name", &m_name))
{
Log::error("GrandPrixData",
"Error while trying to read grandprix file '%s': "

View File

@ -83,7 +83,7 @@ void Highscores::readEntry(const XMLNode &node)
{
const XMLNode *entry = node.getNode(i);
entry->get("time", &m_time[i] );
entry->get("name", &m_name[i] );
entry->getAndDecode("name", &m_name[i] );
entry->get("kartname", &m_kart_name[i] );
// a non-empty entry needs a non-empty kart name.