Fix incorrect type cast in encoder

This commit is contained in:
Dean Herbert 2020-05-31 22:30:55 +09:00
parent 0ef971be28
commit 81b8898272
1 changed files with 2 additions and 2 deletions

View File

@ -233,9 +233,9 @@ private void handleHitObject(TextWriter writer, HitObject hitObject)
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