Fix conversion regression.

This commit is contained in:
Dean Herbert
2017-04-20 11:36:50 +09:00
parent 2a422ca5fa
commit 873599b359
3 changed files with 18 additions and 9 deletions

View File

@ -44,8 +44,10 @@ namespace osu.Game.Database
using (Stream s = storage.GetStream(Path.Combine(replay_folder, replayFilename)))
using (SerializationReader sr = new SerializationReader(s))
{
var ruleset = rulesets.GetRuleset(sr.ReadByte()).CreateInstance();
score = new Score();
score = new Score
{
Ruleset = rulesets.GetRuleset(sr.ReadByte())
};
/* score.Pass = true;*/
var version = sr.ReadInt32();