Fix crash on startup when adjusting volume before volume control loaded

This commit is contained in:
Dean Herbert 2018-05-11 22:57:36 +09:00
parent 18de235486
commit a14531b9a4

View File

@ -100,6 +100,8 @@ namespace osu.Game.Overlays
public bool Adjust(GlobalAction action) public bool Adjust(GlobalAction action)
{ {
if (!IsLoaded) return false;
switch (action) switch (action)
{ {
case GlobalAction.DecreaseVolume: case GlobalAction.DecreaseVolume: