fixed signed vs unsigned comparison that caused psp build to fail

This commit is contained in:
techdragon.nguyen@gmail.com
2010-11-03 16:16:53 +00:00
parent 4a3d7faf0a
commit b7a2196878

View File

@@ -65,7 +65,8 @@ void TextScroller::Update(float dt){
ostringstream scrollerText;
if ( timer == 0 )
{
for ( size_t idx = 0; idx < (MIN(minimumItems, strings.size())); idx ++ )
size_t nbItemsToDisplay = ( static_cast <unsigned> (minimumItems) < strings.size() ? minimumItems : strings.size()); //MIN(minimumItems, strings.size())
for ( size_t idx = 0; idx < nbItemsToDisplay; idx ++ )
{
scrollerText << strings[currentId + idx];
}