Fix mania maps not being treated as mania maps in release builds

This commit is contained in:
Dean Herbert 2018-06-28 16:36:42 +09:00
parent 663778b2f6
commit b1a3f01212
1 changed files with 4 additions and 3 deletions

View File

@ -84,10 +84,11 @@ protected void AddMissingRulesets()
{
try
{
var instance = r.CreateInstance();
var instanceInfo = ((Ruleset)Activator.CreateInstance(Type.GetType(r.InstantiationInfo), (RulesetInfo)null)).RulesetInfo;
r.Name = instance.Description;
r.ShortName = instance.ShortName;
r.Name = instanceInfo.Name;
r.ShortName = instanceInfo.ShortName;
r.InstantiationInfo = instanceInfo.InstantiationInfo;
r.Available = true;
}