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;
|
||||
s << "time-" << i;
|
||||
node->get(s.str(),m_time[i] );
|
||||
s << "name-" << i;
|
||||
s.str(""); s << "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] );
|
||||
}
|
||||
} // Read
|
||||
@ -96,9 +96,9 @@ void HighscoreEntry::Write(lisp::Writer *writer)
|
||||
std::ostringstream s;
|
||||
s << "time-" << j << "\t\t";
|
||||
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] );
|
||||
s << "kartname-" << j << "\t\t";
|
||||
s.str(""); s << "kartname-" << j << "\t\t";
|
||||
writer->write(s.str(), m_kart_name[j] );
|
||||
} // for j
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user