Fixed exchange parse error

This commit is contained in:
Garry Newman 2016-11-09 16:08:30 +00:00
parent 9da329bb7d
commit 53c47d5a12

View File

@ -176,7 +176,7 @@ internal static Ingredient FromString( string part, Definition[] definitions )
if ( part.Contains( 'x' ) )
{
var idx = part.IndexOf( 'x' );
i.Count = int.Parse( part.Substring( idx ) );
i.Count = int.Parse( part.Substring( idx + 1 ) );
part = part.Substring( 0, idx );
}