mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +08:00
Fix incorrect type cast in encoder
This commit is contained in:
parent
0ef971be28
commit
81b8898272
@ -233,9 +233,9 @@ namespace osu.Game.Beatmaps.Formats
|
||||
writer.Write(FormattableString.Invariant($"{(int)getObjectType(hitObject)},"));
|
||||
writer.Write(FormattableString.Invariant($"{(int)toLegacyHitSoundType(hitObject.Samples)},"));
|
||||
|
||||
if (hitObject is IHasPathWithRepeats curveData)
|
||||
if (hitObject is IHasPath path)
|
||||
{
|
||||
addPathData(writer, curveData, position);
|
||||
addPathData(writer, path, position);
|
||||
writer.Write(getSampleBank(hitObject.Samples, zeroBanks: true));
|
||||
}
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user