From 3c72edb0d4448aeec0dc5150f95485353db9e36e Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Mon, 15 Aug 2005 16:01:39 +0000 Subject: [PATCH] report num rows visible and not > the number of actual rows --- stepmania/src/ScreenOptions.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stepmania/src/ScreenOptions.cpp b/stepmania/src/ScreenOptions.cpp index c3b7d3823e..4f244e32b1 100644 --- a/stepmania/src/ScreenOptions.cpp +++ b/stepmania/src/ScreenOptions.cpp @@ -726,7 +726,7 @@ void ScreenOptions::PositionItems() row.GetFrameDestination().PushSelf( L ); LuaHelpers::Push( pos, L ); LuaHelpers::Push( i, L ); - LuaHelpers::Push( NUM_ROWS_SHOWN, L ); + LuaHelpers::Push( min( (int)Rows.size(), (int)NUM_ROWS_SHOWN ), L ); lua_call( L, 4, 0 ); // 4 args, 0 results LUA->Release(L);