增加空判断

This commit is contained in:
shenjianxing 2025-03-08 14:42:45 +08:00
parent 4ab1a9a194
commit d3a6eaa882

View File

@ -117,7 +117,7 @@ public class OperationController : MonoSingleton<OperationController>
public void Clear() public void Clear()
{ {
index = -1; index = -1;
curAction.Deinit(); curAction?.Deinit();
operation = null; operation = null;
steps.Clear(); steps.Clear();
curOperations.Clear(); curOperations.Clear();