Ensure the value used during realm async write is the same as whe compared for equality

This commit is contained in:
Dean Herbert 2022-03-08 19:36:23 +09:00
parent daa42584f4
commit 960b6528ca

View File

@ -167,10 +167,12 @@ namespace osu.Game.Screens.Play.PlayerSettings
if (settings == null) // only the case for tests.
return;
if (settings.Offset == Current.Value)
double val = Current.Value;
if (settings.Offset == val)
return;
settings.Offset = Current.Value;
settings.Offset = val;
});
}
}