Bugfix: ostringstream wasn't cleared between calls.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3057 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
bf01026f43
commit
61ad7ca615
@ -76,9 +76,9 @@ void HighscoreEntry::Read(const lisp::Lisp* const node)
|
|||||||
std::ostringstream s;
|
std::ostringstream s;
|
||||||
s << "time-" << i;
|
s << "time-" << i;
|
||||||
node->get(s.str(),m_time[i] );
|
node->get(s.str(),m_time[i] );
|
||||||
s << "name-" << i;
|
s.str(""); s << "name-" << i;
|
||||||
node->get(s.str(),m_name[i] );
|
node->get(s.str(),m_name[i] );
|
||||||
s << "kartname-" << i;
|
s.str(""); s << "kartname-" << i;
|
||||||
node->get(s.str(), m_kart_name[i] );
|
node->get(s.str(), m_kart_name[i] );
|
||||||
}
|
}
|
||||||
} // Read
|
} // Read
|
||||||
@ -96,9 +96,9 @@ void HighscoreEntry::Write(lisp::Writer *writer)
|
|||||||
std::ostringstream s;
|
std::ostringstream s;
|
||||||
s << "time-" << j << "\t\t";
|
s << "time-" << j << "\t\t";
|
||||||
writer->write(s.str(), m_time[j] );
|
writer->write(s.str(), m_time[j] );
|
||||||
s << "name-" << j << "\t\t";
|
s.str(""); s << "name-" << j << "\t\t";
|
||||||
writer->write(s.str(), m_name[j] );
|
writer->write(s.str(), m_name[j] );
|
||||||
s << "kartname-" << j << "\t\t";
|
s.str(""); s << "kartname-" << j << "\t\t";
|
||||||
writer->write(s.str(), m_kart_name[j] );
|
writer->write(s.str(), m_kart_name[j] );
|
||||||
} // for j
|
} // for j
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user