more tolerant parsing
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user