mirror of https://github.com/ppy/osu
Handle invalid origins as Anchor.TopLeft
This commit is contained in:
parent
47ec139700
commit
df84889646
|
@ -269,9 +269,9 @@ private Anchor parseOrigin(string value)
|
|||
return Anchor.BottomCentre;
|
||||
case LegacyOrigins.BottomRight:
|
||||
return Anchor.BottomRight;
|
||||
default:
|
||||
return Anchor.TopLeft;
|
||||
}
|
||||
|
||||
throw new InvalidDataException($@"Unknown origin: {value}");
|
||||
}
|
||||
|
||||
private void handleVariables(string line)
|
||||
|
|
Loading…
Reference in New Issue