Fix incorrect handling if an update is processed with no changes

This commit is contained in:
Dean Herbert 2022-07-26 17:00:28 +09:00
parent 846291d203
commit 4c22b55ce3

View File

@ -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;