From 682f9aa37980cac45ee23fccebe099dfef36bbdc Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 24 Sep 2005 20:23:15 +0000 Subject: [PATCH] fix Reverse for RTL can be applied multiple times to the same string --- stepmania/src/BitmapText.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/BitmapText.cpp b/stepmania/src/BitmapText.cpp index 74d60fd9c7..a661f909ad 100644 --- a/stepmania/src/BitmapText.cpp +++ b/stepmania/src/BitmapText.cpp @@ -188,7 +188,7 @@ void BitmapText::BuildChars() { iY += m_pFont->GetHeight(); - wstring &sLine = m_wTextLines[i]; + wstring sLine = m_wTextLines[i]; if( m_pFont->IsRightToLeft() ) reverse( sLine.begin(), sLine.end() ); const int iLineWidth = m_iLineWidths[i];