Fixed a crash in the vertical text scroller. Mike, pls review.
This commit is contained in:
@@ -64,7 +64,7 @@ void TextScroller::Update(float dt){
|
||||
ostringstream scrollerText;
|
||||
if ( timer == 0 )
|
||||
{
|
||||
for ( int idx = 0; idx < 2; idx ++ )
|
||||
for ( int idx = 0; idx < (MIN(2, strings.size())); idx ++ )
|
||||
{
|
||||
scrollerText << strings[currentId + idx];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user