From a426b97bea99bd090765caebc7888fd77b151865 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Thu, 10 Jan 2008 20:35:17 +0000 Subject: [PATCH] more tolerant parsing --- stepmania/src/Font.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stepmania/src/Font.cpp b/stepmania/src/Font.cpp index 92a49a173a..7da4345348 100644 --- a/stepmania/src/Font.cpp +++ b/stepmania/src/Font.cpp @@ -505,7 +505,9 @@ 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;