fix: stabilize ping undo state and prevent negative ping steps

This commit is contained in:
yangbear
2026-07-09 06:14:48 +08:00
parent a9d97d4b17
commit ea913c85d0
3 changed files with 14 additions and 11 deletions
+1
View File
@@ -30,6 +30,7 @@ public static class ActionHistory
{
if (History.Count == 0) return false;
var item = History.Pop();
Debug.Log($"[ActionHistory] Undo {item.Type} handler={(item.Handler != null ? item.Handler.name : "null")}, remaining={History.Count}");
if (item.Type == ActionType.Shose)
{