mirror of
https://github.com/ppy/osu
synced 2025-01-04 05:12:10 +00:00
Fix incorrect handling if an update is processed with no changes
This commit is contained in:
parent
846291d203
commit
4c22b55ce3
@ -52,6 +52,10 @@ namespace osu.Game.Beatmaps
|
||||
|
||||
var first = imported.First();
|
||||
|
||||
// If there were no changes, ensure we don't accidentally nuke ourselves.
|
||||
if (first.ID == original.ID)
|
||||
return first;
|
||||
|
||||
first.PerformWrite(updated =>
|
||||
{
|
||||
var realm = updated.Realm;
|
||||
|
Loading…
Reference in New Issue
Block a user