mirror of
https://github.com/ppy/osu
synced 2024-12-15 11:25:29 +00:00
Ensure the value used during realm async write is the same as whe compared for equality
This commit is contained in:
parent
daa42584f4
commit
960b6528ca
@ -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;
|
||||
});
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user