Fixed a crash in the vertical text scroller. Mike, pls review.

This commit is contained in:
wrenczes@gmail.com
2010-11-02 05:50:07 +00:00
parent 4288e7c236
commit 8cb0cf1dae
+1 -1
View File
@@ -64,7 +64,7 @@ void TextScroller::Update(float dt){
ostringstream scrollerText; ostringstream scrollerText;
if ( timer == 0 ) if ( timer == 0 )
{ {
for ( int idx = 0; idx < 2; idx ++ ) for ( int idx = 0; idx < (MIN(2, strings.size())); idx ++ )
{ {
scrollerText << strings[currentId + idx]; scrollerText << strings[currentId + idx];
} }