Fix check against LegacyID for non-default rulesets

This commit is contained in:
HoLLy
2018-03-11 20:19:03 +01:00
parent 3a5283f96d
commit a321bcf3af
2 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ namespace osu.Game.Rulesets
context.SaveChanges();
//add any other modes
foreach (var r in instances.Where(r => r.LegacyID < 0))
foreach (var r in instances.Where(r => r.LegacyID == null || r.LegacyID < 0))
if (context.RulesetInfo.FirstOrDefault(ri => ri.InstantiationInfo == r.RulesetInfo.InstantiationInfo) == null)
context.RulesetInfo.Add(r.RulesetInfo);