1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 04:47:24 +08:00

Handle invalid origins as Anchor.TopLeft

This commit is contained in:
smoogipoo 2018-08-22 14:50:03 +09:00
parent 47ec139700
commit df84889646

View File

@ -269,9 +269,9 @@ namespace osu.Game.Beatmaps.Formats
return Anchor.BottomCentre;
case LegacyOrigins.BottomRight:
return Anchor.BottomRight;
default:
return Anchor.TopLeft;
}
throw new InvalidDataException($@"Unknown origin: {value}");
}
private void handleVariables(string line)