🚨 Free the edit target list when an edit action fails mid-way
This commit is contained in:
@@ -801,6 +801,7 @@ begin
|
|||||||
(not frmMoveSettings.cbAsk.Checked) or ConfirmAction then
|
(not frmMoveSettings.cbAsk.Checked) or ConfirmAction then
|
||||||
begin
|
begin
|
||||||
targetBlocks := TBlockInfoList.Create;
|
targetBlocks := TBlockInfoList.Create;
|
||||||
|
try
|
||||||
if SelectedTile = targetTile then
|
if SelectedTile = targetTile then
|
||||||
begin
|
begin
|
||||||
blockInfo := nil;
|
blockInfo := nil;
|
||||||
@@ -901,11 +902,13 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
finally
|
||||||
targetBlocks.Free;
|
targetBlocks.Free;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
end;
|
||||||
acUndo.Enabled := FUndoList.Count > 0;
|
acUndo.Enabled := FUndoList.Count > 0;
|
||||||
SelectedTile := nil;
|
SelectedTile := nil;
|
||||||
FRepaintNeeded := True;
|
FRepaintNeeded := True;
|
||||||
|
|||||||
Reference in New Issue
Block a user