mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Throw instead of returning zero
This commit is contained in:
@ -29,7 +29,7 @@ namespace osu.Game.Utils
|
||||
if (type.GetField(i.ToString()).GetCustomAttributes(typeof(OrderAttribute), false).FirstOrDefault() is OrderAttribute attr)
|
||||
return attr.Order;
|
||||
|
||||
return 0;
|
||||
throw new ArgumentException($"Not all values of {nameof(T)} have {nameof(OrderAttribute)} specified.");
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user