diff --git a/stepmania/src/BitmapText.cpp b/stepmania/src/BitmapText.cpp index c59f95ce58..70b76fa974 100644 --- a/stepmania/src/BitmapText.cpp +++ b/stepmania/src/BitmapText.cpp @@ -736,7 +736,7 @@ void BitmapText::Attribute::FromStack( lua_State *L, int iPos ) // Get the length. lua_getfield( L, iTab, "Length" ); - length = lua_tonumber( L, -1 ); + length = lua_tointeger( L, -1 ); lua_settop( L, iTab ); // Get the diffuse colors.