Fixed NRE when definitions are updating

This commit is contained in:
Garry Newman 2017-02-02 15:26:58 +00:00
parent 287744fd83
commit b5767fd1b6

View File

@ -285,6 +285,9 @@ internal static Recipe FromString( string part, Definition[] definitions, Defini
foreach ( var i in r.Ingredients )
{
if ( i.Definition == null )
continue;
i.Definition.InRecipe( r );
}