1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-05 09:42:54 +08:00

Use correct value for undo in PropertyChangeCommand

This commit is contained in:
Marvin Schürz 2024-10-10 21:40:36 +02:00
parent 6dccccb607
commit 2175f77831

View File

@ -23,7 +23,7 @@ namespace osu.Game.Screens.Edit.Commands
public void Apply() => WriteValue(Target, Value);
public IEditorCommand CreateUndo() => CreateInstance(Target, Value);
public IEditorCommand CreateUndo() => CreateInstance(Target, ReadValue(Target));
public IMergeableCommand? MergeWith(IEditorCommand previous)
{