From c9f9ab8c9fe3128c02b61b34058a45f555db6534 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Fri, 14 Mar 2008 22:00:40 +0000 Subject: [PATCH] fix dumb parser (thought I fixed this long ago) --- stepmania/src/Font.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/Font.cpp b/stepmania/src/Font.cpp index 5a3c07e6a8..a9e82cd827 100644 --- a/stepmania/src/Font.cpp +++ b/stepmania/src/Font.cpp @@ -528,6 +528,8 @@ void Font::LoadFontPageSettings( FontPageSettings &cfg, IniFile &ini, const RStr * This lets us assign characters very compactly and readably. */ RString sRowStr = sName.substr(5); + TrimLeft( sRowStr ); + ASSERT( IsAnInt(sRowStr) ); const int iRow = atoi( sRowStr.c_str() ); const int iFirstFrame = iRow * iNumFramesWide;